does anyone know an easy way that at the beginning of your script you check to see if that process is already running? I think it would have something to do with ps but I may be making it more complicated than it has to be. If you have a script run say, every half hour, you would want to check and... (13 Replies)
Hi,
Is there any way in Unix to check for the system usage processwise ??
I mean I wud like to get a listing of running processes along with their CPU / memory utilisation so that I can spot dangerous the space / memory eaters ..
Thanks & regards,
SNS (2 Replies)
Except the command "top" , is there other function / tool is used to check the process status in the system like
1. what process are running ?
2. how the CPU are allocating ?
3. how many swap is using ?
4. "
Thx. (1 Reply)
Hi Everybody
I have small requirement that needs to be implemented in shell script.
Currently i have shell script which invokes a java process say "Process A" which runs in background.
If some one tries to invoke again the same shell script , then there should be some mechanism inside the... (23 Replies)
How to find what are the cron jobs which are running at any instant on a Solaris server ??? The job can be scheduled from any id but still would like to list all the cron jobs which are running on the server ??? (2 Replies)
Hi..
I have this code which tells me that if a process is running or not. Actually someone on this forum help me to do it. :) But now If i want to check if the process is not running for more than 10 minutes. Does anyone know the code or syntax that checks if a process is not running for some... (1 Reply)
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)
Hi
I would like to check if an instance of a script is already running.
I've seen many different examples, but I haven't the slightest idea as to how to do this.
Can you please help.
Thank you. (5 Replies)
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
LEARN ABOUT DEBIAN
pkttyagent
PKTTYAGENT(1) pkttyagent PKTTYAGENT(1)NAME
pkttyagent - Textual authentication helper
SYNOPSIS
pkttyagent [--version] [--help]
pkttyagent [--process { pid | pid,pid-start-time } | --system-bus-name busname] [--notify-fd fd] [--fallback]
DESCRIPTION
pkttyagent is used to start a textual authentication agent for the subject specified by either --process or --system-bus-name. If neither
of these options are given, the parent process is used.
To get notified when the authentication agent has been registered either listen to the Changed D-Bus signal or use --notify-fd to pass the
number of a file descriptor that has been passed to the program. This file descriptor will then be closed when the authentication agent has
been successfully registered.
If --fallback is used, the textual authentication agent will not replace an existing authentication agent.
RETURN VALUE
If the authentication agent could not be registered, pkttyagent exits with an exit code of 127. Diagnostic messages are printed on standard
error.
If one or more of the options passed are malformed, pkttyagent exits with an exit code of 126. If stdin is a tty, then this manual page is
also shown.
If the authentication agent was successfully registered, pkttyagent will keep running, interacting with the user as needed. When its
services are no longer needed, the process can be killed.
NOTES
Since process identifiers can be recycled, the caller should always use pid,pid-start-time when using the --process option. The value of
pid-start-time can be determined by consulting e.g. the proc(5) file system depending on the operating system. If only pid is passed to the
--process option, then pkttyagent will look up the start time itself but note that this may be racy.
AUTHOR
Written by David Zeuthen davidz@redhat.com with a lot of help from many others.
BUGS
Please send bug reports to either the distribution or the polkit-devel mailing list, see the link
http://lists.freedesktop.org/mailman/listinfo/polkit-devel on how to subscribe.
SEE ALSO polkit(8), pkaction(1), pkcheck(1), pkexec(1)polkit May 2009 PKTTYAGENT(1)