05-21-2001
Well, if you think about it it is much easer to have something to be a sleep and get into action only when needed. It takes the minimum resources and so keeping your system well up. If you're familiar with scheduling then you got the idea.
gp
This User Gave Thanks to softarch For This Post:
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
If I wanted a machine to put a specific file onto another OS far across the internet via FTP - and I wanted to do it automatically not user intervented, how would I do that?
Use the PUT command?
The file name and position never changes, it gets overwritten and the system on the other end... (6 Replies)
Discussion started by: n9ninchd
6 Replies
2. UNIX for Advanced & Expert Users
My requiremnet is to write a FTP script which will ftp a file to a specified ftp url.
How can I automate the process usnig the unix cron. (11 Replies)
Discussion started by: shauche
11 Replies
3. Shell Programming and Scripting
Hi,
I would like to make a lot of plots with for instance xmgrace and don't know how.
I have a directory with about 500 data files with the same structure and I want to plot always the same columns. I don't know how to call xmgrace to produce a, say, gif plot of the columns 3 and 4 of... (2 Replies)
Discussion started by: pau
2 Replies
4. UNIX for Advanced & Expert Users
Hi ALL:
I need to write a script that will start bunch of servers. and these servers each has a sudo account and they need a passowrd.
I dont know where to start and look.
Can you please give me some hints or some sample code.
Thanks in advance.
splax (4 Replies)
Discussion started by: splax
4 Replies
5. UNIX for Advanced & Expert Users
Is there a way to monitor certain processes and if they hang too long to kill them, but certain scripts which are expected to take a long time to let them go?
Thank you
Richard (4 Replies)
Discussion started by: ukndoit
4 Replies
6. Shell Programming and Scripting
echo "Enter your choice :\c"
read num
case $num in .
1)"${TEST_HOME}"/ctrl_extract.ksh 1 ;;
2)"${TEST_HOME}"/ctrl_extract.ksh 2 ;;3)"${TEST_HOME}"/ctrl_extract.ksh 3 ;;
4)"${TEST_HOME}"/ctrl_extract.ksh 4 ;;
5)"${TEST_HOME}"/ctrl_extract.ksh 5 ;;... (3 Replies)
Discussion started by: arghya_owen
3 Replies
7. Solaris
Hi
Is there an easy way to identify and group currently running processes into OS processes and APP processes. Not all applications are installed as packages.
Any free tools or scripts to do this?
Many thanks. (2 Replies)
Discussion started by: wilsonee
2 Replies
8. Shell Programming and Scripting
hi everyone,
btw, this is my first post and I have done extensive searching before posting so here's the problem:
I need to be able to do two things from the dll I'm writing.
1.) move a file from our production server to our repository server
2.) verify that the file exists in the... (7 Replies)
Discussion started by: jshapaka
7 Replies
9. Shell Programming and Scripting
I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time.
Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Discussion started by: sukerman
0 Replies
sleep(3C) sleep(3C)
NAME
sleep - suspend execution for an interval of time
SYNOPSIS
#include <unistd.h>
unsigned int sleep(unsigned int seconds);
The caller is suspended from execution for the number of seconds specified by the argument. The actual suspension time may be less than
that requested because any caught signal will terminate the sleep() following execution of that signal's catching routine. The suspension
time may be longer than requested by an arbitrary amount because of the scheduling of other activity in the system. The value returned by
sleep() will be the ``unslept'' amount (the requested time minus the time actually slept) if the caller incurred premature arousal because
of a caught signal.
The use of the sleep() function has no effect on the action or blockage of any signal. In a multithreaded process, only the invoking thread
is suspended from execution.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Async-Signal-Safe |
+-----------------------------+-----------------------------+
nanosleep(3RT), attributes(5), standards(5)
16 Mar 2005 sleep(3C)