How to run a cron in background

  1. Login to the server where the cron exists
  2. sudo as root
  3. check the cront list –>  crontab -l
  4. then select cron and run like below as example
  5. cd /usr/local/batch/test_server/scripts; ./UpdateGlobal.sh domain_name test_server UpdateBackOrderItems > ../logs/domain_name_test_server_UpdateBackOrderItems.`date +\%d\%H`.out 2>&1

  6. ctrl+z
  7. bg
  8. jobs ( it will display the list of jobs running)
Recent Posts

Start typing and press Enter to search