12-28-2005
Hi elango
For your process all the PID and PPID are same ....so still we need more details....
What is that script?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, I need some help, because I'm trying to create a process runing all the time (not invoqued by a crontab), like a daemon, to detect the creation of a new file in a specific directory and axecute a process wich do something with this new file.
Can you help me?
For your information my Unix is... (2 Replies)
Discussion started by: lsquillacioti
2 Replies
2. UNIX for Advanced & Expert Users
Does anyone know how I can supress the "Killed" message that's produced when I kill a process? I've got a script that performs a "tail -f" on a database error log and pipes the output into an awk script which looks for certain error messages and forwards any that qualify to my pager. The problem... (2 Replies)
Discussion started by: kenwolff
2 Replies
3. UNIX for Advanced & Expert Users
Hi,
I have a shell script which i am running. I want it's starting time (the time when the execution of the shell script started) in another shell script. Note that the process has already terminated when i need it's starting time.... else i could have used ps -f | cut -d" " -f5...
But that's... (2 Replies)
Discussion started by: k_chaaya
2 Replies
4. UNIX for Dummies Questions & Answers
Hi all!
I'm using CentOS 5.2 with KDE.
Is it possible to get a processname/cmd of a terminated process (= PID not present with PS-command) ?
Are the processnames/scriptnames logged somewhere? (I did not find them in /var/log/messages) (5 Replies)
Discussion started by: JohnMurdoch
5 Replies
5. Shell Programming and Scripting
Hi all,
I'm doing automation task for my team and I just started to learn unix scripting so please shed some light on how to do this:
1) I have 2 sets of datafiles - datafile A and B. These datafiles must be loaded subsequently and cannot be loaded concurrently.
2) So I loaded datafile A... (10 Replies)
Discussion started by: luna_soleil
10 Replies
6. UNIX for Dummies Questions & Answers
Hello All,
I have a script which has a functionality to sleep for 300 seconds after it does some processing, so in the logs if i check after the 3 iteration of sleep it didn't write saying "sleeping for 300 seconds". I suspect putty would automatically terminate session as i cannot access it any... (1 Reply)
Discussion started by: Ariean
1 Replies
7. Red Hat
Hello,
I am in the process of learning Linux OS.
How do I run the below lines of code automatically as root on server startup.
cd /opt/program_folder/ServiceManager/bin
nohup ./servce_manager DEV &
Currently, as soon as the server is up and running I log in as root (as this... (6 Replies)
Discussion started by: rparavastu
6 Replies
8. Shell Programming and Scripting
Hi ,
I have scheduled the script using cron between 25-31 of the month.
My script will trigger the ETL job once file is available in Windows path between these days(every 2 hours between 26 - 30 of every month ).
So my question : "if the ETL job completes cron should stop the running the... (5 Replies)
Discussion started by: Jaganjag
5 Replies
9. UNIX for Beginners Questions & Answers
My server has /var/log/messages with 'init: initLogger main process (608798) terminated with status 1' errors. I researched about the error and also followed the steps from stackexchange :
157059/error-init-ttys0-dev-ttys0-main-process-1612-terminated-with-status-1]linux - ERROR: init: ttyS0... (0 Replies)
Discussion started by: Paras Pandey
0 Replies
LEARN ABOUT MOJAVE
execsnoop
execsnoop(1m) USER COMMANDS execsnoop(1m)
NAME
execsnoop - snoop new process execution. Uses DTrace.
SYNOPSIS
execsnoop [-a|-A|-ejhsvZ] [-c command]
DESCRIPTION
execsnoop prints details of new processes as they are executed. Details such as UID, PID and argument listing are printed out.
This program is very useful to examine short lived processes that would not normally appear in a prstat or "ps -ef" listing. Sometimes
applications will run hundreds of short lived processes in their normal startup cycle, a behaviour that is easily monitored with execsnoop.
Since this uses DTrace, only users with root privileges can run this command.
OPTIONS
-a print all data
-A dump all data, space delimited
-e safe output, parseable. This prevents the ARGS field containing "
"s, to assist postprocessing.
-j print project ID
-s print start time, us
-v print start time, string
-Z print zonename
-c command
command name to snoop
EXAMPLES
Default output, print processes as they are executed,
# execsnoop
Print human readable timestamps,
# execsnoop -v
Print zonename,
# execsnoop -Z
Snoop this command only,
# execsnoop -c ls
FIELDS
UID User ID
PID Process ID
PPID Parent Process ID
COMM command name for the process
ARGS argument listing for the process
ZONE zonename
PROJ project ID
TIME timestamp for the exec event, us
STRTIME
timestamp for the exec event, string
DOCUMENTATION
See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver-
bose descriptions explaining the output.
EXIT
execsnoop will run forever until Ctrl-C is hit.
AUTHOR
Brendan Gregg [Sydney, Australia]
SEE ALSO
dtrace(1M), truss(1)
version 1.20 Jul 02, 2005 execsnoop(1m)