09-22-2010
Write a script which:
1- Get the PID of the process when launched
2 - write a script which will be executed by the first one to check if PID is till there, and execute the script using at command (for the check after 15min...)
The rest you should know how to...
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello.
Since Yesterday, I notice that after giving telnet IP or SSH IP - it takes long time to display login: , I mean earlier after entering Server name It used to immediately ask for login ID and then password. But, now it takes min of 2-3 minute to ask for password.
Where can I check,... (12 Replies)
Discussion started by: panchpan
12 Replies
2. 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
3. Programming
Below is my code. Every once in a while the select call takes as long as 150 seconds (discovered by printing time before and after this statement) while the timeout specified into it is only 1 second. Any clue why? I can't believe that select call which has been around for centuries can have a bug,... (15 Replies)
Discussion started by: old_as_a_fossil
15 Replies
4. Shell Programming and Scripting
Hi,
I have written a script to monitor a Process with the help of top command. This is my script.
======================
#!/bin/sh
DATE=`date +%Y%m%d%H%M%S`
HOME=/home/xmp/testing/xmp_report
RADIUS_PID=`xms -xmp sh pr | grep "RADIUS.iamsp02ldv" |awk '{ print $3 }'`
PSE_PID=`xms -xmp sh... (5 Replies)
Discussion started by: Siddheshk
5 Replies
5. Shell Programming and Scripting
i have a scenario where i need a script that monitors a process "Monitor" based on process id... there can be any number of instances of this running... i start this across 4 servers in NFS. Now i need a file which has the process ids of the process that are currently in execution at any... (9 Replies)
Discussion started by: niteesh_!7
9 Replies
6. Shell Programming and Scripting
Hi Guys,
I'm looking for a script( preferably perl script) which should monitor a application service and alert me when it goes down. application is installed in windows NT.
Scenario: I have remedy ARS 6.1 installed in windows platform and need some script to monitor its service and alert me... (2 Replies)
Discussion started by: user__user3110
2 Replies
7. Shell Programming and Scripting
Hi,
I need help to monitoring a process using the shell script
The same output is below
oracle 32578 32577 0 Feb27 ? 00:06:47 java -cp .:lib/ant.jar:lib/ojdbc5.jar:lib/log4j-1.2.17.jar:/ORACLE_HOME/server/lib/wlfullclient.jar:/ORACLE _HOME/server/lib/weblogic.jar:Alerts.jar... (9 Replies)
Discussion started by: ajothi
9 Replies
8. Shell Programming and Scripting
Hi,
Linux redhat 5.5
I need to write a kshell script that shows all the process that consume 100% CPU (or more. strange but there are time that top shows higger value that 100) and they are active more than 5 minute.
The top command shows all the relevat information:
The PID of the cpu ,... (0 Replies)
Discussion started by: yoavbe
0 Replies
9. BSD
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
10. Shell Programming and Scripting
Hello Friend,
I am not expert in power shell scripting. I nee custom powershell script which check if given process is running on windows machine or not.
will use it in nagios to monitor that process. (0 Replies)
Discussion started by: ghpradeep
0 Replies
LEARN ABOUT OSX
chudremotectrl
CHUDREMOTECTRL(1) General Commands Manual CHUDREMOTECTRL(1)
NAME
chudRemoteCtrl - start or stop the collection of performance monitor data in a performance monitor remote server application.
SYNOPSIS
chudRemoteCtrl [ -m ] [ executable [args... ] ]
chudRemoteCtrl -s label
chudRemoteCtrl -e
chudRemoteCtrl -k PID
DESCRIPTION
chudRemoteCtrl is a command line tool that allows for the collection of performance data by any active performance monitor remote server
application. There are currently two CHUD Tools that can be put in remote performance monitor server mode: MONster, and Shark (as well as
their command line counterparts). Typically, chudRemoteCtrl is invoked on the command line or in a shell script, followed by the path to an
executable to be measured and its arguments. chudRemoteCtrl issues a chudStartRemotePerfMonitor message immediately after launching the
specified target program. When the launched program terminates, chudRemoteCtrl issues a chudStopRemotePerfMonitor message, and then exits.
When the '-s', '-e' or '-k PID' options are used, no program is launched.
OPTIONS
-r seconds: If the 'chudStartRemotePerfMonitor' message fails to either acquire or start the remote monitoring service, then keep try-
ing to start again, until the specified number of seconds has elapsed. The same thing is true of the '-e' option. If there is a '-r
<seconds>' argument on the command line, and a failure occurs trying to stop the remote profiling program, the stop message will be
sent again until the retry time limit is reached.
-s label: Issue a chudStartRemotePerfMonitor message with the specified label and exit. A 'label' is a string of up to 32 characters.
-e Issue a chudStopRemotePerfMonitor message and exit.
-q silence some of the non-essential warning and error output.
-kPID Send a UNIX signal (SIGUSR1 to start profiling, SIGUSR2 to stop profiling) to the specified process-id. For example, if a command-
line profiling tool, is running as PID 4267, using '-k 4267' along with a '-s' will send a SIGUSR1 to the command-line profiling
tool and it will start sampling, while '-k 4267' along with a '-e' will send a SIGUSR2 to the command-line profiling tool and it
will stop sampling. A 'start' example: % chudRemoteCtrl -s session_42 -k 4267. And a 'stop' example: % chudRemoteCtrl -e -k 4267.
The command-line CHUD tool 'shark' responds to UNIX signals and toggles performance profiling. You can repeatedly send '-s <label>
-k <PID#>' to shark and it will toggle profiling start or stop. Sending '-e -k <PID#>' to shark will stop sampling (if it's run-
ning) and cause shark to EXIT.
-m Set the performance monitor mark bit in the main thread of the launched child process.
DIAGNOSTICS
chudRemoteCtrl returns a zero (0) upon success and a non-zero value on failure.
BUGS
Please send your comments, suggestions and bug reports to: perftools-feedback@group.apple.com
SEE ALSO
monster(1), shark(1)
CHUD
6 October 2003 CHUDREMOTECTRL(1)