• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

Time

On HP korn shell, how can I use the time function to kick off a process at a certain time?  


thanks..  
0
vhuynh
Asked:
vhuynh
1 Solution
 
ozoCommented:
the `time` function is not used for that.
try the `at` function
0
 
arthurdCommented:
Or if you want to setup a recurring job, use cron.
0
 
tfabianCommented:
following up on the  "AT" command,

exact syntax depends on your specific OS version.. but in general,

if you type

   AT

it should allow you to enter one or more commands to execute..
control d closes the command input


 if you say something like

   AT 1030

it should continue the same, but will schedule the job at 10:30 on the next day if it's past that time, or on the same day if before...

other switches should allow naming times or days by name.  eg. today, tomorrow, Monday, etc.  


eg.    AT 1030 thursday next week shellfile

where shellfile is the shell command you want to run.. would run the job at 1030 am on the next Thursday..


I concur though, for repeat items, use a CRON job..

to edit your cron tab, enter      crontab -e

for a sample format,

30 10 * * *   /bin/shell-script-name-here

would run a script named  /bin/shell-script-name-here everyday at 10:30 am.. note that times are reversed..  minutes first, then hours, then days of the week.. etc. etc. etc. etc.  

good luck


0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now