nohup example

Run in background and redirect output to null

nohup somecommand >> /dev/null 2>&1 &

Example with mysql backup (I use it so it wont timeout over SSH):

nohup mysqldump -A --password=password | gzip > /home/backups/somebackup.sql.gz | >> /dev/null 2>&1 &

Leave a Reply

Your email address will not be published. Required fields are marked *