Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /homepages/3/d98111892/htdocs/insanelabs/htdocs/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 524
This is quite useful. I used to push jobs to the background and then exit shell, but it wasn’t an easy task considering I have short term memory issues (not a complete retard, just too much on my mind ;)). I found this awesome little command to have the commands or scripts run right after I’m off the wagon!
That’s it… simply run your comman with it:
Don’t forget the ampersand at the end. Use absolute path for scripts:
nohup ~/script &
If your scripts requires additional options to run, use a quote right before the ampersand:
nohup ~/script "start" &
Note that you don’t need to use this for your wget command… wget comes with a built-in switch (b):