I am running a number of processes through a kill -15 loop as a temporary fix to some viscious memory leaks. I cannot pass the entire list of processes through the kill at once, because the nature of the monitoring my client has will cause the software to failover.
Because of the large number of... (1 Reply)
hello everyone,
i am attempting to run the sleep function (i've also tried select) during the execution of a command to mimic a status. for example:
# this is a terminal screen
# here the process is executed
# below this a status is displayed while the command executes like so:... (3 Replies)
Hi All I have a requiremnt to run a script inside another script.
here i am pulling the record count from the table in oracle.If record count is greater than 0 the script is executed.The scripts updates the count in the table and again the count is found out and the condition is checked and same... (3 Replies)
I had a script executing every hour to kill a process. I used loop rather than cron to execute it periodically. But now when I am trying to kill that sleep process of 1 hour its not getting killed. it is taking a new PID everytime I kill. To disable the script commenting is the only option... (1 Reply)
Hi Forum.
I have a script that accepts 3 input parameters (source directory, list file text, sleep time) and checks for the presence of files. If not there, script goes to sleep for certain amount of time provided by 3rd input.
list file text contains 1 entry but may contain more (file... (13 Replies)
Hello,
Need a little help with the script below. I can't get it to sleep :( I'm trying to get this to check if the process is running and if it is, wait 10 secs and check again. Keep doing this until it's not running and then stop checking and send the email.
#!/bin/ksh
mailto=`cat... (2 Replies)
Hi Frnz,
I need to execute sleep command but i dont know the definite time.
Let me put my req:
I am running one shell script and this script creates some lock file in temp dir ...now in my script i want one function to go into sleep mode till this lock file exists..one lock file gone that... (6 Replies)
hi all
sleeping processes in the following output , are they doing anything , but consuming lot of sources, should I need to kill them , how to know , , what they are doing
and the output says out of 260 processes only 9 are running , and 251 are sleeping , what does the sleeping means, can... (8 Replies)
I need help in script.
I want my one script execute every time at 6:30 am and i have no cron access.
So i am putting sleep command there , Script may took half an hour 35 min , it depend upon queries how much it take time, but that is not issue,
So i want according to stop time of... (15 Replies)
Discussion started by: pallvi_mahajan
15 Replies
LEARN ABOUT DEBIAN
sleepctl
SLEEPCTL(1) General Commands Manual SLEEPCTL(1)NAME
sleepctl - enable/disable sleepd
SYNOPSIS
sleeptcl [on|off|status]
DESCRIPTION
sleepctl allows temporarily disabling of the sleepd(8) daemon, by a regular user. This can be useful when you're in the middle of a long
download or compile, and don't want the system going to sleep in the middle.
"sleepctl off" makes sleepd not put the system to sleep even if it thinks it is idle. If this command is run more than once, the requests
stack up, and a like number of "sleepctl on" commands must be run to re-enable sleeping. This may be useful if multiple automated processes
or users use the command. Note that the system may still be put to sleep for other reasons, such as a failing battery.
"sleepctl on" re-enables sleeping. If sleeping is re-enabled and sleepd has seen no system activity for some time, and has been prevented
from putting the system to sleep, it may put the system to sleep immediatly.
"sleepctl status" outputs the current status of sleepd.
Note that if the system is forced to sleep by other means, sleepd will not remember what mode it was in when it wakes back up, and will
return to the default mode of putting the system to sleep after some amount of inactivity. This is by design, so you may easily and natu-
rally undo the effects of a "sleepctl off" without remembering to turn it back on.
This program communicates with sleepd by writing to the file /var/run/sleepd.ctl. As such, it needs read/write access to that file. It also
needs to run as whatever user sleepd runs as, so it can hup the daemon.
EXAMPLES
sleepctl off ; wget http://foo/huge.tgz ; sleepctl on
SEE ALSO sleepd(8)
http://kitenet.net/~joey/code/sleepd/
AUTHOR
Joey Hess <joey@kitenet.net>
SLEEPCTL(1)