Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Time

Posted on 1998-10-29
3
152 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
UNiX Script filesystem space usage Part2 54 88
remove a combination of patterns from a file 15 70
Martian Packets Unix 5 67
Expiration and Locking of Unix/Solaris OS Accounts 7 49
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

861 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