08-07-2006
There is none needed, just put the pid(s) at the end of the command.
9 More Discussions You Might Find Interesting
1. Solaris
we aheva couple of old sun OS boxes, that we are trying to parse /usr/ucb/ps output.
However it seems that something is occuring that is causeing th output of "/usr/ucb/ps -auxwww" to cut short the process name, whereas "ps -eaf" can display the entire process name.
It will work for a while... (2 Replies)
Discussion started by: adralph
2 Replies
2. Shell Programming and Scripting
Hi I need to subtract one day from date1=`/bin/date +%d`
So I used
date=`/usr/ucb/expr $date1 - 1`
The only thing is if date1 is a single digit like 08, date will be 8 instead of 08.
How can I avoid losing 0?
Thanks for all your help!!! (4 Replies)
Discussion started by: whatisthis
4 Replies
3. Shell Programming and Scripting
Hello all
im trying to get the value of:
/usr/ucb/ps -guxww | grep Tomcat | grep $USER | grep -v grepinto variable , im using csh .
like this :
set PS="/usr/ucb/ps -guxww"
set isTomcat = `cat $PS | grep Tomcat | grep $USER | grep -v grep`
but im keep geting this error:
cat: cannot open... (4 Replies)
Discussion started by: umen
4 Replies
4. UNIX for Advanced & Expert Users
Hei,
When I run the /usr/ucb/ps -auxwll with any other user except root I get nothing (Solaris 10 in global).
Is a way to get the same resualt as root with my user.
tnx
Mehrdad (0 Replies)
Discussion started by: mehrdad68
0 Replies
5. Shell Programming and Scripting
hello
I am trying to run the following script to get the my-progam pid:
#!/bin/ksh
tt=`/usr/ucb/ps| grep -i $1| grep -v grep | awk '{print $2}'`
echo $tt
When I run the script I get the more PIDs
$./test.sh my-program
12033 15033 15034
Actually my-program's PID is 12033....I... (6 Replies)
Discussion started by: sreeniatbp
6 Replies
6. Solaris
Hi all,
below is the problem details:
ora10g@CNORACLE1>which ld
/usr/ucb/ld
ora10g@CNORACLE1>cd /usr/ccs/bin
ora10g@CNORACLE1>ln -s /usr/ucb/ld ld
ln: cannot create ld: File exists
ora10g@CNORACLE1>
how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies
7. UNIX for Advanced & Expert Users
Hi,
on solaris I need the full ps output, and process this. With /usr/ucb/ps auxwww I get the output as wanted, but the user is cut off to 8 long.
With ps -o ruser I can get the full username, but I do not have the full output.
Is it possible to get long output, with the full username?
... (1 Reply)
Discussion started by: dimpie
1 Replies
8. OS X (Apple)
Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself.
But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies
9. BSD
I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries.
I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble:
$ ./autogen.sh
checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies
LEARN ABOUT CENTOS
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), polkitd(8), pkaction(1), pkcheck(1), pkexec(1)
polkit May 2009 PKTTYAGENT(1)