04-06-2016
Hi Manas,
Some guidance on the way that processes work which may possibly help you.
To check the current process list, you can use a command like ps (process status) an example would be ps -ef showing the active list of processes.
The information presented provides much information about the process, even the ps command will show in this list. It will only exist "while the command is running", it will have a unique PID (Process ID) each time it is run. Once the process has completed there is no evidence that it has ever been there, to capture the data that you have requested - you would have had to start 10 days ago.
Regards
Dave Munro
10 More Discussions You Might Find Interesting
1. Programming
Hi All,
The scenario is like this:
There is a process say "A" which create a child process say "B" if some condition is true and process "A" terminates. "B" invokes some C program say "C" using 'execl' function. The job of program "C" is to keep polling the server until the server will be up.... (2 Replies)
Discussion started by: ranjkuma692
2 Replies
2. UNIX for Advanced & Expert Users
I want to write a unix shell script that will check if a process (say debu) is running in the server or not. If no , then send a mail to the corresponding person to start the process??? (2 Replies)
Discussion started by: debu
2 Replies
3. Shell Programming and Scripting
Hello all,
I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted.
Thanks in advance
Regards,
pradeep kulkarni.
:mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies
4. Shell Programming and Scripting
Ok, so here is what I am looking for..
Shell script that uses find to look for one days worth of data using the modified date and then copies only those files to a specified directory.
I figured I could use grep and the find command to do this. It seems to work just fine from what I can... (4 Replies)
Discussion started by: techjunky
4 Replies
5. Shell Programming and Scripting
Hi.. i have written a shell script and made this script to run on every day night 11: 55 pm using a cron job.
This cron job running for some days and is not running for some day. but i need this script to run every day night. Please help me.
Here is the cron tab entries,
55 23 * * *... (1 Reply)
Discussion started by: vidhyaS
1 Replies
6. Shell Programming and Scripting
Hi All,
I have a requirment, i need to get the list of all the process which are running from last two days on my unix server and also to put this list into an another file.
i am giving you a sample example :
$ ps -ef
UID PID PPID C STIME TTY TIME CMD (1 Reply)
Discussion started by: akshu.agni
1 Replies
7. Shell Programming and Scripting
Hi, i was looking for an answer for some trouble im having runing a script in the cron, thing is, that when i run it manually it works just fine. But when cron runs it, it just doenst work. I saw a reply on a similar subject, suggesting that the . .profile worked for you, but im kind of... (9 Replies)
Discussion started by: blacksteel1988
9 Replies
8. Shell Programming and Scripting
hi,
Am a newbie to unix and wasnt able to write script to my requirement.
I need a shell script, which should find a process by name and kill it. For eg: let the process name be "abc". I have different processes running by this name(abc), so should kill them all.
Condition would be: if... (7 Replies)
Discussion started by: fop4658
7 Replies
9. Shell Programming and Scripting
Hi All, I have been a guest visitor from a long time and this forum is wonderful. I finally am a member of this forum too, so i am here stuck with a shell script that i was trying to write
My requirement is that i should be able to create a shell script which will check if a process is running on... (3 Replies)
Discussion started by: Rex0226
3 Replies
10. Shell Programming and Scripting
Hello Group,
We want to create a script in order to filter process in the system with more than five days (STIME) and then kill them under Solaris 10.
How can we filter these kind of process ?
ps -efa
Thanks in advance for your help (4 Replies)
Discussion started by: csierra
4 Replies
PS(1) General Commands Manual PS(1)
NAME
ps, psu - process status
SYNOPSIS
ps
psu [ user ]
DESCRIPTION
Ps prints information about processes. Psu prints only information about processes started by user (default $user).
For each process reported, the user, process id, user time, system time, size, state, and command name are printed. State is one of the
following:
Moribund Process has exited and is about to have its resources reclaimed.
Ready on the queue of processes ready to be run.
Scheding about to be run.
Running running.
Queueing waiting on a queue for a resource.
Wakeme waiting for I/O or some other kernel event to wake it up.
Broken dead of unnatural causes; lingering so that it can be examined.
Stopped stopped.
Stopwait waiting for another process to stop.
Fault servicing a page fault.
Idle waiting for something to do (kernel processes only).
New being created.
Pageout paging out some other process.
Syscall performing the named system call.
no resource waiting for more of a critical resource.
FILES
/proc/*/status
SOURCE
/sys/src/cmd/ps.c
/rc/bin/psu
SEE ALSO
kill(1), db(1), ps(1), proc(3)
PS(1)