PS command doesnot display shellscript runningi


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers PS command doesnot display shellscript runningi
# 1  
Old 09-10-2005
PS command doesnot display shellscript runningi

PS command doesnot display shellscript runningi have written a small shel script to check for
idsk space and log it to a file evry 300s.this so this
run is a loop.
But i want to start stop this script from another script
using ps -ef grep
but ps -ef is not displaying the script in output, if i type 'ps -ef <scriptname>'
it intead says .sh which i cant used to kill the process
# 2  
Old 09-14-2005
If you are starting / stopping a script from another, then you should be able to use parent and child pid's to check. Take a look at this post
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shellscript command to remove files starting with a certain string, and older than 3 days

Hi All, Need help in identifying a shellscript command to remove all files on a server directory, starting with a certain prefix and also older than 3 days. That means files created with that prefix, today or yesterday, shouldn't be removed. Thanks, Dev (3 Replies)
Discussion started by: dev.devil.1983
3 Replies

2. Solaris

Cronjob doesnot exist on the machine but running every sunday

I have deleted a particular cronjob couple of months ago but the jb is still running every sunday, even though it is not present in /var/spool/cron/crontabs/root file. Please assist. (6 Replies)
Discussion started by: prash358
6 Replies

3. Shell Programming and Scripting

cc and bcc and to command in shellscript

Hi All, I have tried some below commands , some of these are working. some are not working. I want to add this "TO ,cc, bcc, from " in shellscript. can anyone give me the example for this. mailx -s "$SUBJECT5" "$EMAIL" < $EMAILMESSAGE above code is working but i want to... (5 Replies)
Discussion started by: aish11
5 Replies

4. Shell Programming and Scripting

How to use mailx command in shellscript?

Hi, i have run the below script in bash ...after running this command iam not getting any error but i am not getting the mail.Can anybody help me regarding this issue? #! /bin/bash x=50 if then mail -s "$x is greater than 25" manish.gupta@gmail.com fi (2 Replies)
Discussion started by: pspriyanka
2 Replies

5. UNIX Desktop Questions & Answers

ssh command doesnot excute commands in the destination server

Hi All, I have the below code where Iam connecting from xzur111pap server to xzur0211pap server thru ssh to execute some commands. ssh xzur0211pap spaceleft=`df -k /home |tail -1 | awk '{print $5}'` spaceleft=${spaceleft%\%} if ]; then echo "ALERT : HUFS(/home $spaceleft)" exit 0... (3 Replies)
Discussion started by: gaddamja
3 Replies

6. Shell Programming and Scripting

remove newline between two string with sed command in unix shellscript

I have a file (test.dat) which contains data like this 459|199811047|a |b |shan kar|ooty| 460|199811047|a |bv |gur u|cbe| but I need it like: 459|199811047|a |b |shankar|ooty| 460|199811047|a |b |guru|cbe| While reading the data from this file, I don't want to remove newline from the end of... (4 Replies)
Discussion started by: jcrshankar
4 Replies

7. Solaris

Require some way or shell in which commands doesnot gets logged in history file

Guys, can u tell me some way in which the commands i execute on solaris system doesnot gets logged. It should not appear in history file.. Is there any shell which provide such solution or can I turn off the logging, if yes then how... Help will be appreciated Thanks (2 Replies)
Discussion started by: harpreetrekhi
2 Replies

8. Shell Programming and Scripting

search files which doesnot match pattern ?

Hi I need a command to search files in a directory which does not match with pattern .. Plz send me this Ex : Test is directory and has some 10 files with different name all are with *.dat extension , need to search files which doesnot contain word "Dummy file". Thanks (6 Replies)
Discussion started by: madankumar
6 Replies

9. Shell Programming and Scripting

how to schedule the cron only if tuesday doesnot fall under 5 th and 25 th of jan

Hi I am new to unix. I have to set up a cron for the program , which should run every Monday at 3 a.m, however , if the date is between the 5 th and the 15th of January,APril or December, the program should not run I know i cant do this in cron , Help with writing the if contion is... (1 Reply)
Discussion started by: saiviren
1 Replies

10. Shell Programming and Scripting

echo doesnot show output

hi every one , i m new in unix . i m trying shell scripting . set v = abc echo $v but it does not show any output . please help me (4 Replies)
Discussion started by: samy123
4 Replies
Login or Register to Ask a Question