How to run a cron in background
- Login to the server where the cron exists
- sudo as root
- check the cront list –> crontab -l
- then select cron and run like below as example
-
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
- ctrl+z
- bg
- jobs ( it will display the list of jobs running)
Recent Posts