11-08-2004
If I understand the question, your approach is not the best. There is no need to loop. Two lines will do it:
sleep 172800
XYZ
Except that if the box reboots in the next 48 hours, this will be lost. Maybe that is what you want. If not, create a shell script to run in 48 hours and use:
at -f /path/to/run_XYZ now + 48 hours
See "man at" for more info.
10 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Neo,
can u please shorten the reply timer to like 1 min or so. It is prolly just me but i end up passing on replying to posts due to i hate waiting for my timer to reset w/ a 2.5 mins wait. (2 Replies)
Discussion started by: Optimus_P
2 Replies
2. Programming
I'm trying generate an interrupt every 1 seconds using itimer and My clock is not running. This is what i did :
printf("about to sleep for 1 second \n");
signal(SIGALRM, wakeup);
//myTimer.it_interval.tv_sec=0;
//myTimer.it_interval.tv_usec =0;
... (5 Replies)
Discussion started by: Confuse
5 Replies
3. AIX
anyone can help me how to implement the timer on AIX?
I tried with 'setitimer' and its related functions, but it does not work correctly,the program exited each time.
thanks (2 Replies)
Discussion started by: Frank2004
2 Replies
4. Shell Programming and Scripting
Hi!,
My shell script takes a quite a long time to execute.. Nothing appears on the screen during this period.. User are left guessing... whats going on????????????
Any ideas on how to create a small timer script which print a word on screen say " wait.. Program running" after every 10 seconds... (3 Replies)
Discussion started by: jyotipg
3 Replies
5. Shell Programming and Scripting
Hello fellows,
I am new in this forum, i would appreciate your assistance.
I need a timming system for my vnc desktops (Cybercafe timer stuff).
Each unix user login to my server only with vnc, and i want to write a program that can generate timer tickets and have control on the time used for... (0 Replies)
Discussion started by: foweja
0 Replies
6. UNIX for Advanced & Expert Users
Hello fellows,
I am new in this forum, i would appreciate your assistance.
I need a timming system for my vnc desktops (Cybercafe timer stuff).
Each unix user login to my server only with vnc, and i want to write a program that can generate timer tickets and have control on the time used for... (1 Reply)
Discussion started by: foweja
1 Replies
7. UNIX for Dummies Questions & Answers
hello all
since a process running in kernel mode cannnot be preempted by any other process what would be the status of Timer interrupt that occurs when the time quantum of a process is elapsed?
thanks (2 Replies)
Discussion started by: compbug
2 Replies
8. Shell Programming and Scripting
Is there a way to make a timer?
E.g Please give the seconds...
... (6 Replies)
Discussion started by: aekaramg20
6 Replies
9. UNIX for Dummies Questions & Answers
is there a timer function in unix without using C?
for example i want to display a message after 5 seconds
how do i do that? (2 Replies)
Discussion started by: khestoi
2 Replies
10. Shell Programming and Scripting
How do you set timer as output to the command line so that you get an output like
Has been waiting for 5 seconds
Has been waiting for 6 seconds
...
Where only the number changes. (2 Replies)
Discussion started by: locoroco
2 Replies
LEARN ABOUT HPUX
reltimer
reltimer(3C) reltimer(3C)
NAME
reltimer - relatively arm a per-process timer
SYNOPSIS
DESCRIPTION
The function sets the of the specified timer to an offset from the current clock setting.
If specifies a value argument with the member equal to zero, the timer is disabled. updates the it_interval value of the timer to the
value specified. Time values smaller than the resolution of the specified timer are rounded up to its resolution; timer values larger than
the maximum value of the specified timer are rounded down to the maximum value (see mktimer(3C)).
returns in the ovalue parameter a value representing the previous amount of time before the timer would have expired or zero if the timer
was disabled, together with the previous interval timer period. The members of ovalue are subject to the resolution of the timer, and are
the same values that would be returned by a call.
The behavior of this function is undefined if value is NULL.
RETURN VALUE
Upon successful completion, returns zero; otherwise, it returns -1 and sets to indicate the error.
ERRORS
fails if any of the following conditions are encountered:
[EINVAL] does not correspond to an ID returned by or the value structure specified a nanosecond value less than zero or greater
than or equal to 1000 million.
[EIO] An error occurred while accessing the clock device.
FILES
SEE ALSO
timers(2), gettimer(3C), mktimer(3C), thread_safety(5).
STANDARDS CONFORMANCE
reltimer(3C)