Sponsored Content
Full Discussion: Process management
Top Forums UNIX for Dummies Questions & Answers Process management Post 230 by gollof on Monday 13th of November 2000 09:03:57 AM
Old 11-13-2000
Error

Hi!

I desperately need some help here...
I need to write a shellscript that lists all running processes (as in ps -ef), search the list it gets for occurances of a certain process, if found do nothing if not found start it again.
Anyone feel up to it?

/G
 

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

"Process management" question

This one will show how "wet behind the ears" I am but here it goes... Suppose my boss wants me to run an app every day from the command line. The command line statement looks like this: $> my_executable_program -my_parameter file > my_outfile Let's say that one day, I do this: $>... (1 Reply)
Discussion started by: alan
1 Replies

2. AIX

service/process management -autostart at startup

Hi, I want to modify some of the services/processes (related to the oracle database) to start automatically at the startup of the server. which commands may help me? which commands do I need to use? my server configuration is, in brief: hardware:IBM P550 / OS : AIX 5300 thanks,... (1 Reply)
Discussion started by: talipk
1 Replies

3. HP-UX

Unix process management

Hi guys, I want to learn the process management in unix deeply. I have looked for different commands here and there but I can't find a consolidated document or book, does anybody have a link to any book or something? Regards, Messi (1 Reply)
Discussion started by: messi777
1 Replies

4. What is on Your Mind?

Individual Risk Management (Personal IT Security) and Browser Cache Management

Original post from this thread on browser caching. To add to this, it is an effective security measure to clear absolutely all cached data (cookies, web content, ....) when closing the browser - i.e. in case of a shutdown. It takes a bit of work to re-login to all the sites but websites will not... (7 Replies)
Discussion started by: bakunin
7 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)
All times are GMT -4. The time now is 10:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy