05-15-2006
You can use cron or other scheduler to schedule this script.
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have simple shell script that I run as cron job every hour of the day. I would like to make it a daemon that runs far more frequently like every 30 seconds or so, but I have never made daemon before. How can I do this?
-Sam (7 Replies)
Discussion started by: Sammy_T
7 Replies
2. Shell Programming and Scripting
Hi everybody,
Does somebody has a sample of script that control a daemon?
for example use loop until the daemon is on and if is not on
do something else?
Thanks
Pier (0 Replies)
Discussion started by: pierrelaval
0 Replies
3. Shell Programming and Scripting
Hi
I was going through one of my pjct script .Please let me know the logic for the deamon is running or not as i think the condtn should be vice-versa.
daemon_list = 'idp1278'
FAIL=0
for p in ${daemon_list}
do
fail=0
ps -fu workarea | grep ${p} > /dev/null 2>&1
if ] then
... (1 Reply)
Discussion started by: mani_isha
1 Replies
4. Shell Programming and Scripting
Hi,
HI ,
I have a simple script that moves files from one folder to another folder, I have already done the open-ssh server settings and the script is working fine and is able to transfer the files from one folder to another but right now I myself execute this script by using my creditianls to... (3 Replies)
Discussion started by: nks342
3 Replies
5. Shell Programming and Scripting
Hi,
I have one query that is suppose if I have a script that pick up some files from source folder and put it into destination folder , and I want this script to run after every 1 hour, to make it configurable as per that I have options like crontab and nohup but when I test this script I have to... (2 Replies)
Discussion started by: nks342
2 Replies
6. Shell Programming and Scripting
hi
I have the following script named ./daemonscript
while true
do
#echo string to file results
echo ok >> results
#commands
sleep 2
done
I call it the following way : ./daemonscript &
and I want it to stop when the user presses the "S" button together with... (5 Replies)
Discussion started by: vlm
5 Replies
7. Shell Programming and Scripting
Say i have a simple example:
root@server # cat /root/scripts/test.sh
while sleep 5
do
echo "how are u mate" >> /root/scripts/test.log
done
root@server #
Instead of using rc.local to start or another script to check status, I would like make it as daemon, where i can do the following:
... (2 Replies)
Discussion started by: timmywong
2 Replies
8. Shell Programming and Scripting
Hey guys,
I'm rather new to scripting with the shell (I started on Wednesday) and encountered a problem that left me clueless.
I moved to an old house recently and the sound of the 433mhz door bell is too quiet. Since I always wanted to start playing around with a raspberry pi and my wife... (11 Replies)
Discussion started by: matthes0815
11 Replies
9. Shell Programming and Scripting
Hi,
Can we integrate all the systemctl command into a shell script to verify any service with all the options of systemctl if service integrate with the operating system service management tools to deliver their functionality.
sudo systemctl start <service_name>
sudo systemctl stop... (1 Reply)
Discussion started by: Mannu2525
1 Replies
10. UNIX for Beginners Questions & Answers
My requirement is to run two scripts simultaneously.
Let say, script1.ksh is running in a loop :
example:
script1.ksh is:
for i in 1 2 3
do
script2.ksh 1 &
#psedu code which is required to write here
# if script 2.ksh is running, execute a script3.ksh (which actually check the... (2 Replies)
Discussion started by: sumitc
2 Replies
LEARN ABOUT CENTOS
tapset::scheduler
tapset::scheduler(3stap) tapset::scheduler(3stap)
NAME
tapset::scheduler - systemtap scheduler tapset
DESCRIPTION
scheduler.cpu_off
Process is about to stop running on a cpu
See probe::scheduler.cpu_off(3stap)
for details.
scheduler.cpu_on
Process is beginning execution on a cpu
See probe::scheduler.cpu_on(3stap)
for details.
scheduler.tick
Schedulers internal tick, a processes timeslice accounting is updated
See probe::scheduler.tick(3stap)
for details.
scheduler.balance
A cpu attempting to find more work.
See probe::scheduler.balance(3stap)
for details.
scheduler.ctxswitch
A context switch is occuring.
See probe::scheduler.ctxswitch(3stap)
for details.
scheduler.kthread_stop
A thread created by kthread_create is being stopped
See probe::scheduler.kthread_stop(3stap)
for details.
scheduler.kthread_stop.return
A kthread is stopped and gets the return value
See probe::scheduler.kthread_stop.return(3stap)
for details.
scheduler.wait_task
Waiting on a task to unschedule (become inactive)
See probe::scheduler.wait_task(3stap)
for details.
scheduler.wakeup
Task is woken up
See probe::scheduler.wakeup(3stap)
for details.
scheduler.wakeup_new
Newly created task is woken up for the first time
See probe::scheduler.wakeup_new(3stap)
for details.
scheduler.migrate
Task migrating across cpus
See probe::scheduler.migrate(3stap)
for details.
scheduler.process_free
Scheduler freeing a data structure for a process
See probe::scheduler.process_free(3stap)
for details.
scheduler.process_exit
Process exiting
See probe::scheduler.process_exit(3stap)
for details.
scheduler.process_wait
Scheduler starting to wait on a process
See probe::scheduler.process_wait(3stap)
for details.
scheduler.process_fork
Process forked
See probe::scheduler.process_fork(3stap)
for details.
scheduler.signal_send
Sending a signal
See probe::scheduler.signal_send(3stap)
for details.
SEE ALSO
probe::scheduler.cpu_off(3stap), probe::scheduler.cpu_on(3stap), probe::scheduler.tick(3stap), probe::scheduler.balance(3stap),
probe::scheduler.ctxswitch(3stap), probe::scheduler.kthread_stop(3stap), probe::scheduler.kthread_stop.return(3stap),
probe::scheduler.wait_task(3stap), probe::scheduler.wakeup(3stap), probe::scheduler.wakeup_new(3stap), probe::scheduler.migrate(3stap),
probe::scheduler.process_free(3stap), probe::scheduler.process_exit(3stap), probe::scheduler.process_wait(3stap),
probe::scheduler.process_fork(3stap), probe::scheduler.signal_send(3stap), stap(1), stapprobes(3stap)
IBM
--- tapset::scheduler(3stap)