Operating System - HP-UX
1833731 Members
2753 Online
110063 Solutions
New Discussion

setting a cron job via sam

 
SOLVED
Go to solution
Shahla Tabarzadi_5
Frequent Advisor

setting a cron job via sam

I like to set up the following script:
/opt/OV/hin/ovautoimgr via sam.
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: setting a cron job via sam

Shalom

sam

Process Management

scheduled cron jobs

Actions Add

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ninad_1
Honored Contributor

Re: setting a cron job via sam

sHAHLA,

You can schedule a job through cron -
1. Either use crontab -e to directly edit the crontab file for the user and insert the entry as appropriate (do a man crontab to understand the fields of crontab file).
2. Through SAM -> Process Management -> Scheduled cron jobs , Then press the tab key to go to the menu and then use arrow keys to goto Action -> Add -> then its pretty clear what to select - like daily/hourly etc. and provide the relevant information when you want ot schedule the job.

Hope this helps,
Ninad
MarkSyder
Honored Contributor

Re: setting a cron job via sam

Word of warning if you are going to use Ninad's advice: e (edit) and r (remove) are next to each other on the keyboard making it easy to accidentally delete your crontab file when you want to edit it. Before running crontab -e, run crontab -l > /tmp/cron.safe to make a safe copy.

Even better, set up a cron job to back up your cron file once a week.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Shahla Tabarzadi_5
Frequent Advisor

Re: setting a cron job via sam

thanks
Shahla Tabarzadi_5
Frequent Advisor

Re: setting a cron job via sam

Dorood: Sholam and Thanks in Farsi