Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP WITH A CRON JOB?

Status
Not open for further replies.

TeleBOYWONDER

IS-IT--Management
Nov 8, 2002
82
US
Can someone quickly tell me when these jobs are running?(I thought the job was to run every 30 minutes).
Also what the "dev/null 2>&1" mean?(I am mostly interested in the 2>&1 as I believe the rest is sending background output to the null device. Although I would be eager to find out what the null device is too! )

Thanks in advance for the help.



00 3 * * * /export/home/pserv/tcs4/agent cron > /dev/null 2>&1
5,35 * * * * /export/home/pserv/tcs4/manpower cron > /dev/null 2>&1
r3bluma#
 
00 3 * * * /export/home/pserv/tcs4/agent cron > /dev/null 2>&1

This job runs at 3am every day.

5,35 * * * * /export/home/pserv/tcs4/manpower cron > /dev/null 2>&1

This job runs every day at 5 min and 35 min past every hour

The /dev/null sends output to a null file (discarded)
The 2>&1 sends error output to same as 1 (standard output) which in turn is /dev/null (discarded).


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top