10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
im looking for a portable way to get the PID of the script that is running, and to get every other PIDs that are spawned from it.
and by ever other PIDs, i presume, that would be "child processes".
however, i want to shy away from using any command that is not available on every single unix... (1 Reply)
Discussion started by: SkySmart
1 Replies
2. Shell Programming and Scripting
Hi All,
I have a date variable say dt="2014-01-06 07:18:38"
Now i need to use this variable to search a log and get the entries which occured after that time. (1 Reply)
Discussion started by: Girish19
1 Replies
3. Shell Programming and Scripting
Hi there !!!
I am writing a script to kill the pids on different linux boxes :cool:
the output of my command gives the pids running on that box, but how can I kill all the pids without looping? :confused:
Code:
ssh $i ps -fu $USER | grep ManServer | grep -v grep | awk '{print $2}' | kill
... (4 Replies)
Discussion started by: prany_cool
4 Replies
4. Shell Programming and Scripting
I have 2 files
config1h.txt
-----------------
BFMU=ENABLE,ID=PM
THR=OFF,REP=ALL,CON=IACM,TIM=OFF;GPON collection strategy
1.3.6.1.2.1.2.2:8
1.3.6.1.2.1.2.2:7
1.3.6.1.4.1.637.61.1.35.11.4:4
1.3.6.1.4.1.637.61.1.35.11.4:3
1.3.6.1.4.1.637.61.1.35.10.1:2
1.3.6.1.4.1.637.61.1.35.10.1:43... (7 Replies)
Discussion started by: LavanyaP
7 Replies
5. Shell Programming and Scripting
Hi all,
I got 2 file :
file1:
file2:
output:
But , must write out in C shell.Anybody can help solve? (6 Replies)
Discussion started by: proghack
6 Replies
6. Solaris
I am trying to determine the root cause of a java process that dies trying to startup during it's cron job.
I did go ahead and change the time that it starts up in the cron file and now it starts successfully.
However is there a way to determine what PID a process was attempting to get when... (5 Replies)
Discussion started by: vedder191
5 Replies
7. Shell Programming and Scripting
I have the column as
2.14%
1.42%
0.64%
0.50%
0.44%
0.38%
0.38%
0.36%
0.35%
0.35%
0.32%
0.32%
0.31%
0.30%
0.30%
I want to find out if any of these values is greater than 75%, is yes then print that value. (2 Replies)
Discussion started by: Santosh251982
2 Replies
8. Shell Programming and Scripting
Hi,
There is a file having a list of running PIDs (pid_process) and another file having a list of registered PIDs (pid_regieter).
I want to check if:-
a) there is at least one running PID that does not correspond to a
registered PID (listing the PID not registered in the file)
... (1 Reply)
Discussion started by: marconi
1 Replies
9. Shell Programming and Scripting
I am trying to write a Shell script wherein the shell needs to read a list of PID in the File $stat/bin/Process and compare it to the PID of the processes running on a server.
Also the script should return KO(not OK) with corresponding label :-
a) When an environmental variable not... (2 Replies)
Discussion started by: marconi
2 Replies
10. Shell Programming and Scripting
HI,
I am able to find days difference using FIND command. However it is comparing between today and the last time it was modified.
I now need to find the difference between a date specified by myself and the last time the file was modified. Is there a command which I can use or I have to... (1 Reply)
Discussion started by: scmay
1 Replies