Sponsored Content
Special Forums UNIX and Linux Applications How to check if process is running? Post 302417834 by plus2plus on Saturday 1st of May 2010 01:20:08 AM
Old 05-01-2010
Also
Code:
if ps aux | grep '[/]usr/sbin/daemon' then      echo Running else      /usr/sbin/daemon & fi

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to check if another instance of the process is running

Hi, I am writing a shell script to invoke a C++ program. Before I start the C++ program (oi7loadbalancer), I am checking if the process is already running. I start the process only if it is not already running. I have the following check in my script. proccount=`ps -f -u $USER_NAME | grep... (8 Replies)
Discussion started by: sim
8 Replies

2. Shell Programming and Scripting

check process running

I have this script: ------------------------------------------------------- #!/bin/ksh # if ] || ] then echo "Executing main_load.sh script" /usr1/psc_load/jobs/cron/main_load.sh "ods" else echo "File not found, do nothing" fi exit 0 ... (4 Replies)
Discussion started by: rose1207
4 Replies

3. UNIX for Advanced & Expert Users

how to check how long the process has been running.

I have a requirement to check how long a process is running on unix system.If i use ps -ef i am getting the following message guest 2453638 1998920 0 16:16:05 - 0:00 dsapi_slave 9 8 0 but this is showing only time not the date.Can any one please advice me any script to find out how... (2 Replies)
Discussion started by: ukatru
2 Replies

4. UNIX for Advanced & Expert Users

How to check since when (for how long) a particular process is running ?

How do I check if a particular process is running from a certain date and time ? (2 Replies)
Discussion started by: hpuxlxboy
2 Replies

5. Shell Programming and Scripting

Check if Process is running

Hi , I have a csh code below which check the process if it's running. Can any expert advise me on the following: 1) what does this notationmean ">!" and how is it different from the append ">" notation ? 2) how does "setenv" work in this code ? # Check whether there is a running... (3 Replies)
Discussion started by: Raynon
3 Replies

6. UNIX for Dummies Questions & Answers

Command to check if a particular process is running

Hi What is the best command to check if a particular process is running in a linux server or not To check any java process, I use the below command. ps -ef |grep jvm When I execute the above command, it lists me all the processess . The above command should ideally return only the... (6 Replies)
Discussion started by: vr3w3c9
6 Replies

7. Programming

How do I check if a process is running in C

How to I check if a process is running in C? I'm trying to use ps aux |grep "process name" but failing in doing that. How do I do that? Thanks, (1 Reply)
Discussion started by: cprogdude
1 Replies

8. Shell Programming and Scripting

need to check if the process is running

Hi, I check if the process is running or not using the below. /usr/ucb/ps auxww | grep 109 |grep rmi | awk '{print $2}' 9718 Thus we see 9718 is the PID. It return blank if the process is not running. I need to perform some action if the process is not running and leave it if... (8 Replies)
Discussion started by: shifahim
8 Replies

9. UNIX for Dummies Questions & Answers

How a process can check if a particular process is running on different machine?

I have process1 running on one machine and generating some log file. Now another process which can be launched on any machine wants to know if process1 is running or not and also in case it is running it wants to stream the logs file generated by process1 on terminal from which process2 is... (2 Replies)
Discussion started by: saurabhnsit2001
2 Replies

10. Shell Programming and Scripting

Looping to check the currently running process.

Hi Gurus, t=`ps -u irb|grep -v grep|grep BSNL_PAYMENT_C` echo $t if then echo $? echo "Process Creation is Running ...." else echo "Process went down at $dat $tim" fi How would i use loop so that the script continously checks for the current status of this process.... (1 Reply)
Discussion started by: ankitknit
1 Replies
bootpgw(8)						      System Manager's Manual							bootpgw(8)

NAME
bootpgw - Internet BOOTP Protocol gateway SYNOPSIS
/usr/opt/obsolete/usr/sbin/bootpgw [-d level] [-t timeout] [-h hopcount] [-w waittime] server [server...] OPTIONS
Sets the debug-level variable that controls the number of debugging messages generated. For example, -d 4 sets the debugging level to 4. Sets the maximum hop count a BOOTP request can contain for this bootpgw daemon to forward the packet. The default is 4. Specifies the timeout value (in minutes) that the bootpgw process waits for a BOOTP packet before exiting. If no packets are received for timeout min- utes, the program exits. A timeout value of zero means run forever. When the bootpgw daemon is not started using the inetd daemon, this option is forced to 0. Specifies the minimum wait time in seconds. Requests are forwarded only if the client has been waiting for at least the specified time. The default value is 0. OPERANDS
Specifies the name or IP address of a BOOTP server to which the bootpgw forwards BOOTP requests. DESCRIPTION
The bootpgw daemon implements a simple BOOTP gateway that can be used to forward requests and responses between clients and BOOTP servers (for example, bootpd) on different subnets. In order to use the bootpgw daemon, you must install the Obsolete Commands and Utilities subset (OSFOBSOLETExxx). The bootpgw can be started by the /usr/sbin/inetd daemon by specifying the following line in the /etc/inetd.conf file: bootps dgram udp wait root /usr/sbin/bootpgw bootpgw server Note that server specifies the name or IP address of a bootp server to which the bootpgw forwards bootp requests. You may not have the bootpd daemon and the bootpgw daemon running on the same system because they listen on the same bootps port. When the bootpgw daemon is started, it determines the address of a BOOTP server whose name is provided as a command line parameter. When the bootpgw daemon receives a BOOTREQUEST packet, it sets the gateway address and hop count fields in the packet and forwards it to the BOOTP server at the address determined earlier. Then the bootpgw daemon looks in the /etc/services file to find the port numbers it should use. The following two entries are extracted: The bootp server listening port. The destination port used to reply to clients. If the port numbers cannot be determined this way, they are assumed to be 67 for the server and 68 for the client. RESTRICTIONS
You cannot run bootpgw and bprelay on the same system at the same time. FILES
Defines the sockets and protocols used for Internet services. SEE ALSO
Commands: bootpd(8), bprelay(8), inetd(8), joind(8) DARPA Internet Request For Comments: Bootstrap Protocol (RFC 951), Clarifications and Extensions for the Bootstrap Protocol (RFC 1532) bootpgw(8)
All times are GMT -4. The time now is 02:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy