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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP! Need help scripting chron job on Solaris

Status
Not open for further replies.

skoshi

MIS
Jul 25, 2002
3
US
I am needing to set up a chron job on a Solaris machine that runs at midnight local time, stores collected data, & clears counters


It needs to collect the output of sho atm counters and send that data to a collection file
send command clear counters atm 5/0 pvc all -no confirm
disable the enable mode
close out of redback
store file with time/date stamp
parce the newly gathered file into xcell.xls spread sheet and mail out the report as an automated function
and build a directory to store data files for x amount of time



I need another chron job that will go in at 06:00 and just clear counters and logout to allow 1st job to collect stats from 06:00am to 23:59pm daily

I'm new to Unix commands and was hoping: Can anyone help?


 
crontab -e lets you edit cron.

If you want script_a to run at midnight each day, then add this line in the edit:

0 0 * * * script_a

If you want script_b to run at 06:00am each day then add this line:

0 6 * * * script_b
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top