Sponsored Content
Full Discussion: Stateless process
Top Forums Shell Programming and Scripting Stateless process Post 302853381 by fpmurphy on Saturday 14th of September 2013 12:21:07 AM
Old 09-14-2013
Suggest you modify your script to better capture the raw process state. Something like the following (which I have not tested):
Code:
edii_pid_runnning=`ps -p ${edii_pid} -o s`
edii_pid_runnning_state=`echo ${edii_pid_runnning} | grep -v "^S" | tr -d ' '`
if [[ ${edii_pid_runnning_state} != 'O' ]]; then
    print "${edii_pid} isn't in running (O) state but is ${edii_pid_runnning}!" 
fi

This User Gave Thanks to fpmurphy For This Post:
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

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

2. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

3. Shell Programming and Scripting

script to monitor the process system when a process from user takes longer than 15 min run.

get email notification from from system when a process from XXXX user takes longer than 15 min run.Let me know the time estimation for the same. hi ,any one please tell me , how to write a script to get email notification from system when a process from as mentioned above a xxxx user takes... (1 Reply)
Discussion started by: kirankrishna3
1 Replies

4. Homework & Coursework Questions

Protect service with statefull, stateless

how to protect service dns with filtering tables (statefull, stateless)? iptables -L iptables ...? (1 Reply)
Discussion started by: nini
1 Replies

5. BSD

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies

6. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies

7. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies

8. Shell Programming and Scripting

Monitoring processes in parallel and process log file after process exits

I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues: 1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies

9. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies
MENHIR(1)						      General Commands Manual							 MENHIR(1)

NAME
menhir - parser generator for OCaml SYNOPSIS
menhir [options] files DESCRIPTION
menhir is a LR(1) parser generator for the Objective Caml programming language. That is, Menhir compiles LR(1) grammar specifications down to Objective Caml code. It is mostly compatible with ocamlyacc(1). OPTIONS
-h, --help Show summary of options. -b, --base basename Specifies a base name for the output file(s). --comment Include comments in the generated code. --depend Invoke ocamldep and display dependencies. --dump Describe the automaton in basename.automaton. --error-recovery Attempt recovery by discarding tokens after errors. --explain Explain conflicts in basename.conflicts. --external-tokens module Import token type definition from module. --graph Write grammar's dependency graph to basename.dot. --infer Invoke ocamlc for ahead of time type inference. --interpret Interpret the sentences provided on stdin. --interpret-show-cst Show a concrete syntax tree upon acceptance. -la, --log-automaton level Log information about the automaton. -lc, --log-code level Log information about the generated code. -lg, --log-grammar level Log information about the grammar. --no-inline Ignore the %inline keyword. --no-stdlib Do not load the standard library. --ocamlc command Specifies how ocamlc should be invoked. --ocamldep command Specifies how ocamldep should be invoked. --only-preprocess Print a simplified grammar and exit. --only-tokens Generate token type definition only, no code. --raw-depend Invoke ocamldep and echo its raw output. --stdlib directory Specify where the standard library lies. --suggest-comp-flags Suggest compilation flags for ocaml{c,opt}. --suggest-link-flags-byte Suggest link flags for ocamlc. --suggest-link-flags-opt Suggest link flags for ocamlopt. -t, --table Use the table-based back-end. --timings Display internal timings. --trace Include tracing instructions in the generated code. --version Show version number and exit. -v Synonymous with --dump --explain. SEE ALSO
ocaml(1). AUTHOR
menhir was written by Francois Pottier and Yann Regis-Gianas. This manual page was written by Samuel Mimram <smimram@debian.org>, for the Debian project (but may be used by others). April 19, 2006 MENHIR(1)
All times are GMT -4. The time now is 05:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy