Would you be better to schedule this with cron to run every 10 minutes, so that if your session crashes, the process will still fire up? You could easily code it something like:-
If the normal action is just to go back to sleep, then this simplifies to:-
Is this what you are after? If not, could you explain a little more?
Hello all,
I want to run a script every 3 minutes in os level and to send mail.
I scheduled in crontab as
3 * * * * /mnt1/monitorscripts/testdbstart.sh
I got mail every one hour and I confirmed that the script is running every 1 hour which doesn't meet my requirment.
Where I am... (4 Replies)
I want to run my shell script for every 15 minutes starting from 12:20AM. I am passing parameter GA to shell script.
Does this work? Any one please comment on this?
20 0-23/15 * * * xyz.sh 'GA' > xyz.log 2>&1 (9 Replies)
Okay, so I have a file containing line after line of three digit numbers. I need a script that does an action based on the last two numbers in this list.
So.... To get the last two numbers, I can have the script do
tail -2 filename.txt
But where I run into trouble is as follows. If... (6 Replies)
Hi all!!
Im using ksh and my OS is Linux.
I want to run a script for ten minutes, starting from my current system time.
How to acheive this?
Any help appreciated.
Thanks in advance (5 Replies)
Hi Friends,
I have a requirement to run the cronjob for every 10 minutes from 2:00 AM to 6:00 AM. Does the below code works? If not, please advise.
* * * * * command to be executed
┬ ┬ ┬ ┬ ┬
│ │ │ │ │
│ │ │ │ │
│ │ │ │ └---------------------------------- day of week (0 - 6) (0 is... (5 Replies)
Hi I would appreciate your help with this.
I have a output file from a command. It is broken based on initial of the users. Exmaple of iitials MN & SS. Under each section there is information pertaining to the user however each section can have different number of lines. MY challenge is to ... (5 Replies)
Hello Gurus,
I want to schedule a cron job which will run every 2 minutes starts at 11:25 AM and 3:25 AM daily.
Can you please suggest as how to schedule the job.
Thanks-
Pokhraj Das (2 Replies)
Hi all,
System Ubuntu 16.04.3 LTS
i have the following log
INFO 2019-02-07 15:13:31,099 module.py:700] default: "POST /join/8550614e-3e94-4fa5-9ab2-135eefa69c1b HTTP/1.0" 500 2042
INFO 2019-02-07 15:13:31,569 module.py:700] default: "POST /join/6cb9c452-dcb1-45f3-bcca-e33f5d450105... (15 Replies)
Discussion started by: charli1
15 Replies
LEARN ABOUT CENTOS
rhnsd
RHNSD(8) Red Hat, Inc. RHNSD(8)NAME
rhnsd - A program for querying the Spacewalk server for updates and information.
SYNOPSIS
rhn_check [options]
DESCRIPTION
rhnsd is a background daemon process that periodically polls the Spacewalk server to see if there are any queued actions available. If any
are queued, rhnsd will execute those actions.
rhnsd is typically started from the initialization (init) scripts in /etc/init.d/rhnsd. when it's time to poll the Spacewalk server for
available updates and actions. The default interval is every 240 minutes. The minimum polling interval is 60 minutes.
To check for updates, rhnsd runs an external program called rhn_check. This is a small application that actually makes the network connec-
tion to Spacewalk.
The rhnsd daemon does not listen on any network ports, nor does it ever talk to the network directly. Any network activity is done via the
rhn_check utility.
rhnsd can be configured by editing the /etc/sysconfig/rhn/rhnsd. configuration file. This is actually the configuration file the rhnsd
initialization script /etc/init.d/rhnsd. uses.
OPTIONS -i, --interval
Specify the interval that rhnsd should wait between checking the Spacewalk. Default is 240 minutes, the minimum is 60 minutes. This
can also be specified in /etc/sysconfig/rhn/rhnsd
-f, --foreground
force the rhnsd process to run in the foreground instead of automatically backgrounding itself, as it does by default.
FILES
/etc/sysconfig/rhn/rhnsd
Configuration settings for the rhnsd daemon's initialization script.
SEE ALSO rhn_check(8), rhn_register(8), rhnsd(8), rhn-profile-sync(8), rhnplugin(8), up2date(5).
AUTHORS
Preston Brown <pbrown@redhat.com>
Cristian Gafton <gafton@redhat.com>
Adrian Likins <alikins@redhat.com>
James Bowes <jbowes@redhat.com>
BUGS
Report bugs to <http://bugzilla.redhat.com>.
COPYRIGHT
Copyright (C) 1999-2006 Red Hat, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
Linux 2006 November 13 RHNSD(8)