Solved

Time

Posted on 1998-10-29
3
154 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
[X]
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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux hostname change 2 95
Expiration and Locking of Unix/Solaris OS Accounts 7 87
Archiving and Removal of old files AIX 7.1 2 28
swp file in unix 16 42
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.
Suggested Courses

732 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