Solved

Time

Posted on 1998-10-29
3
150 Views
Last Modified: 2010-04-21
On HP korn shell, how can I use the time function to kick off a process at a certain time?  


thanks..  
0
Comment
Question by:vhuynh
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 2007626
the `time` function is not used for that.
try the `at` function
0
 
LVL 1

Expert Comment

by:arthurd
ID: 2007627
Or if you want to setup a recurring job, use cron.
0
 
LVL 5

Accepted Solution

by:
tfabian earned 100 total points
ID: 2007628
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now