10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I want to save pid of a child process but I get empty file.
su myuser -c "nohup ./mydaemon.sh >/dev/null 2>&1 & print $! > mydaemon.pid"
This one works:
nohup ./mydaemon.sh >/dev/null 2>&1 & print $! > mydaemon.pid
Please help. Thank you in advance. (2 Replies)
Discussion started by: vincegata
2 Replies
2. Shell Programming and Scripting
I want to check whether a particular process has started at 10:00a.m or not.
I can check process by ps -fu but dont know how to check it with respect to time. Could anyone help me with this?
---------- Post updated at 11:14 AM ---------- Previous update was at 10:52 AM ----------
can i use... (9 Replies)
Discussion started by: kishore kumar
9 Replies
3. Programming
I am writing java application on windows.
There are more than 100 threads run within java.exe.
I want to know what threads run within process java.exe so that I can find out if there are abnormal java threads. (4 Replies)
Discussion started by: mika
4 Replies
4. UNIX for Advanced & Expert Users
What is the difference between running a process using nohup and running a process in background ? Please explain (6 Replies)
Discussion started by: srksn
6 Replies
5. UNIX for Advanced & Expert Users
Hi all,
I wanted a write a script which will start executing whenever a particular process will starts running in a background.
Is there is any way in Unix if a directory contents changed then a signal/Interrupt will generated and by taking status of that interrupt I can execute some scripts.... (11 Replies)
Discussion started by: zing_foru
11 Replies
6. UNIX for Dummies Questions & Answers
Please can someone describe what causes undesired process startup on system console.
ps -ef output is like:
root 1763 1 0 16:22:24 console 0:00 /bin/sh /usr/System........
process is blocking system console for any access (2 Replies)
Discussion started by: zverzak
2 Replies
7. Programming
Hi,
When i m trying to run below code,its entering into wait stage.
output: In parent
pid=2134 // some random value assigned to child process
parent waiting.....
and then it keeps on waiting for child to get terminate
Y this child is not getting... (5 Replies)
Discussion started by: Crab
5 Replies
8. UNIX for Advanced & Expert Users
i have scipt which is calling some
other scripts and some built-in utilities like SED, find etc..
i started this script using nohup
(e.g: nohup scriptname &)
now i want to kill this script and all the child processes
of this script.
the problem is, process id of child processes are... (4 Replies)
Discussion started by: gfhgfnhhn
4 Replies
9. UNIX for Dummies Questions & Answers
i have process that was started few days ago , is there way to know by its id how long it was alive in the system ?
Thanks (2 Replies)
Discussion started by: umen
2 Replies
10. Shell Programming and Scripting
I am having a problem getting the PID of a process I start in the background is a csh.
In tcsh and sh it's simple
$! give it to you
But in csh this just returns
Variable syntax
From the man page it should work but it doesn't????
Any help. (2 Replies)
Discussion started by: stilllooking
2 Replies