06-06-2008
Worked Great!!!
Thank you for the info. It worked great in my script.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
using ps -ef | fgrep "ld_data"
how do i write a script to check that it didn't already run
Thanks (2 Replies)
Discussion started by: Link_02
2 Replies
2. Shell Programming and Scripting
HI,
I have a script which will be running all the time...it is like a trigger.. wakesup every 10 minutes(trigger.sh) executes, and I want to write another script which monitors this script every one hour and if it finds that trigger script is not running it should start it and exit...and here... (9 Replies)
Discussion started by: mgirinath
9 Replies
3. Shell Programming and Scripting
Hi,
I want to run a check platform & application script under ksh (Soaris boxes).
It runs some commands and it take some time.
I want to customize it like that:
- output is too big, hence I want some output of the commands to be redirect
ed in an output file (or maybe two or three) - not... (4 Replies)
Discussion started by: heartwork
4 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix. Can anyone tell me "How to check the status of the processes running for the current user?"
Regards,
Ravindaran S (1 Reply)
Discussion started by: ravind27
1 Replies
5. Shell Programming and Scripting
How do I make a shell script to see if a certain process is running.
The process shows up on ps aux as /usr/sbin/daemon
eg:
if
/usr/sbin/daemon
else
#nothin
basically i want to run the process if it isnt running/ has been stopped.
Thanks. (2 Replies)
Discussion started by: daydreamer
2 Replies
6. Shell Programming and Scripting
Hi,
My requirement is that i am login from ROOT in a script but when any
command is coming which is logging to sqlplus then i have to run it with normal user as only normal user have permission to connect to sqlplus .
i tried making a script like this :
#! /bin/ksh
su -... (3 Replies)
Discussion started by: rawatds
3 Replies
7. Shell Programming and Scripting
Hi,
I am a unix newbie. I need to write a script to check wheteher another script is still running. If it is, then sleep for 30m and then check again if the script is running. If the script has stopped running then, I need to come out of the loop.
I am using RHEL 5.2 (2 Replies)
Discussion started by: mathews
2 Replies
8. Linux
Hello,
i allready search on google und here in the local Forum, but can't found something.
I need a query in php, that check whether a process (script) is running or not. Like this:
php query: /usr/bin/Script01 >> if runnig, then: "Script01 is Online", if not "Script01 is Offline"
I... (2 Replies)
Discussion started by: ProTechEx
2 Replies
9. Shell Programming and Scripting
Happy New Year
Is there a quick way to check to see if a script is already running.
I want to put in a check in the script to exit, if already running.
Currerntly i can only think of doing it the following way.
# ps -ef | grep -i 3_HOUSEKEEPING_FFTVTL_TO_FFTDSSU_DUPLICATION.ksh |... (5 Replies)
Discussion started by: Junes
5 Replies
10. UNIX for Beginners Questions & Answers
I have one shell script in NAS shared location. Since NAS is mounted in many servers, script can be run from any of those servers.
I want to make sure if the script is already running, it should not allow others to run it. I googled it and got some idea that i can touch one empty file in the... (8 Replies)
Discussion started by: thomasraj87
8 Replies
LEARN ABOUT DEBIAN
ecalength
ecalength(1) Multimedia software ecalength(1)
NAME
ecalength - prints audio file length and other information
SYNOPSIS
ecalength [-ahtsfmbcr] FILE1 [FILE2] [FILEn]
DESCRIPTION
This is ecalength, a few lines of code pompously named so because they let one retrieve the length of an audio file from the command line
using ecasound's engine.
Limitations:
- With files without header information (raw files), ecalength will only work correctly if the audio file is at a sampling rate of
44100 hz. (Addressed with the -a switch.)
- It is not foolproof, feeding it with something other than an audio file WILL result in ugly things being spewed back. (A bit bet-
ter)
- A thousand more that I haven't thought of.
OPTIONS
-h Prints this usage message. (help)
-a[:]bits,channels,rate
Changes the format assumed by default for headerless data. (adjust)
-t Prints the summed length of all the files processed. (total) (Ignored if with -s)
-s Enables script mode: One info type per file per line. (script) (Defaults to length in secs.)
-f With -s will return the format string as info, alone it will add it to the main display. (format)
-b If -s and -f are enabled with this the info printed will be the sample's bitwidth. (bits)
-c If -s and -f are enabled with this the info printed will be the channel count. (channel count)
-r If -s and -f are enabled with this the info printed will be the sampling rate. (rate)
-m Will print human computable time as in main display but in batch fashion. (minutes) (Only with -s)
SEE ALSO
ecasound(1), ecatools(1)
AUTHOR
S.Massy, <observer |at| colba.net <observer |at| colba.net>>
18.04.2004 ecalength(1)