Crontab entry on runtine [message #410433] |
Sat, 27 June 2009 00:10 |
mrpranab
Messages: 32 Registered: March 2005
|
Member |
|
|
Hi Experts,
I have a query.
When I execute a shell script sh1.ksh, at the run time I need to put another shell script sh2.ksh in the crontab from the parent script (sh1.ksh) with the parameter which we provided to sh1.ksh script, to execute sh2.ksh on the background for doing process. And the cron entry also needs to be removed for that file after the script finishes its jobs.
How do we put a file in the crontab with parameter and remove the entry from crontab dynamically?
Ex: - ./sh1.ksh <parameter1-name> <parameter2-name>
In Crontabs the script should look like this: '5 * * * * sh2.ksh <parameter1-name> <parameter2-name>'
Thanks in adv.
|
|
|
|