How can $Now be both less than 705 and greater than 708?
rdcwayx, it sounds like this script is a start/login script that probably runs from .profile. If this is the case, scheduling it to run via cron is unlikley to be usefull.
I think DGPickett is on the right path have your backup (or whatever else is running at 5am Sunday) create a lockfile and check it with the start/login script, that way you can also stop it running for other ad-hoc maintence, or whatever.
Last edited by Chubler_XL; 12-07-2010 at 08:11 PM..
Hello all,
I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted.
Thanks in advance
Regards,
pradeep kulkarni.
:mad: (13 Replies)
Hi guys,
I neet to run sqlldr to charge about 50,000 files every day to my DWH, so I need to make an script to keep about 100 processes of sqlldr running at the same time.
So, the issue is that i've been trying for a few days to make an script which can keep that amount of processes running, so... (2 Replies)
I am trying to see if a process is running what was its start time.
here is the code that I am using
if
then
echo 'Gateway output processing started.'
else
VAR=$(ps -ef | grep batch_output_x )
...
fi
now the problem i see is when the process is running i get two... (3 Replies)
I have a script that executes a MAIN JAVA FILE
It does check if the process is already running or not by using this code
w_pid=`ps -efx | grep -v grep | grep "FileTransactionArchiveMain dvlp"|awk '{print $11}'`
if
then
#echo 'Another instance is running.'
exit
fi
Now I... (1 Reply)
Hi,
Do anybody experience to write a bash script in order to kill a specific process (java) after certain time of running?
eg.
java java.jar task_run.txt
I will run a java program (java.jar) which will run a long list of process (task_run.txt) one by one.
I plan to terminate the java... (5 Replies)
Frineds I need assistance in writing a script . Newbie to scripting.
How to find list of processes that are running more than an hour . Below i used the step to get the etime and stime . Now by getting the result i need to display longer time process with full listing.
ps -aef -o... (10 Replies)
Need help in scripting . Below is the situation and need your inputs
Checking all the processes, scripts running time based on user input time . Below Example
ps -aef -o user,pid,etime,stime,args| grep sleep
<user> 28995 01:24 14:14:39 sleep 120
<user> 29385 00:52 14:15:10... (8 Replies)
I use this command to get the time elapsed for a process
ps -eo pid,pcpu,pmem,user,args,etime,cmd --sort=start_time | grep perl
It gives in format
19990 0.0 0.0 user /usr/bin/php 5-09:58:51 /usr/bin/php
I need in seconds.
Please use CODE tags for sample input and output as well... (2 Replies)
I am running a script which will read the data from fail line by line and call the Java program by providing the arguments from the each line.
The Java code is working fast for few records and for some records its getting hanged not providing response for morethan one hour.
Currently am... (4 Replies)
Discussion started by: dineshaila
4 Replies
LEARN ABOUT DEBIAN
supybot-botchk
SUPYBOT-BOTCHK(1) General Commands Manual SUPYBOT-BOTCHK(1)NAME
supybot-botchk - A script to start Supybot if it's not already running.
SYNOPSIS
supybot-botchk [options]
DESCRIPTION
supybot-botchk is a script that will start Supybot if it detects that one is not currently running. This can be useful for scheduling
supybot(1) to run via cron(8).
OPTIONS -h, --help
Show summary of options.
-v, --verbose
Use verbose output when running the script.
--botdir=BOTDIR
Determines which directory the bot be started in.
--pidfile=PIDFILE
Specifies the name of the pidfile to look for. This should be relative to the given botdir.
--supybot=SUPYBOT
Specifies the location of supybot(1). If this is not given, it is assumed that supybot(1) is in the user's $PATH.
--conffile=CONFFILE
Specifies the path to the bot's configuration file. This will be used when (re)starting the bot.
SEE ALSO python(1), supybot(1), supybot-test(1), supybot-wizard(1), supybot-adduser(1), supybot-plugin-doc(1), supybot-plugin-create(1)AUTHOR
This manual page was originally written by James Vega <jamessan at supybot dot com>. Permission is granted to copy, distribute and/or mod-
ify this document under the terms of the Supybot license, a BSD-style license.
APRIL 2005 SUPYBOT-BOTCHK(1)