runtime crontab entry

Hi,

I have a query. When I execute a shell script say sh1.ksh,
at the run time I need to put another shell script say sh2.ksh
in the crontab with the parameter which we provided to sh1.ksh
script, to execute sh2.ksh on the background for doing process.

Also the cron entry needs to be removed 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 crontab the script should look like this:
5 * * * * sh2.ksh <parameter1-name> <parameter2-name>

Thanks in adv.

If you want to schedule a job for a one-off operation, perhaps you should look at "at" instead of cron. Just a thought.

man at