08-07-2006
maybe my SunOS doens't work?
the result of `uname -a` is:
SunOS sun6 5.8 Generic_108528-12 sun4u sparc SUNW,Ultra-60
when running with -p the result is:
/login/fredy>/usr/ucb/ps -axuwwwww -p"1"
/usr/ucb/ps: illegal option -- p
Thanks again,
Fredy
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 OPENSOLARIS
aedplot
plot(1B) SunOS/BSD Compatibility Package Commands plot(1B)
NAME
plot, aedplot, atoplot, bgplot, crtplot, dumbplot, gigiplot, hpplot, implot, plottoa, t300, t300s, t4013, t450, tek, vplot, hp7221plot -
graphics filters for various plotters
SYNOPSIS
/usr/ucb/plot [-Tterminal]
DESCRIPTION
The plot utility reads plotting instructions (see plot(4B)) from the standard input and produces plotting instructions suitable for a par-
ticular terminal on the standard output.
If no terminal is specified, the environment variable TERM is used. The default terminal is tek.
ENVIRONMENT VARIABLES
Except for ver, the following terminal-types can be used with `lpr -g' (see lpr(1B)) to produce plotted output:
2648 | 2648a | h8 | hp2648 | hp2648a
Hewlett Packard 2648 graphics terminal.
hp7221 | hp7 | h7 |
Hewlett Packard 7221 plotter.
300
DASI 300 or GSI terminal (Diablo mechanism).
300s | 300S
DASI 300s terminal (Diablo mechanism).
450
DASI Hyterm 450 terminal (Diablo mechanism).
4013
Tektronix 4013 storage scope.
4014 | tek
Tektronix 4014 and 4015 storage scope with Enhanced Graphics Module. (Use 4013 for Tektronix 4014 or 4015 without the Enhanced Graphics
Module).
aed
AED 512 color graphics terminal.
bgplot | bitgraph
BBN bitgraph graphics terminal.
crt
Any crt terminal capable of running vi(1).
dumb | un | unknown
Dumb terminals without cursor addressing or line printers.
gigi | vt125
DEC vt125 terminal.
implot
Imagen plotter.
var
Benson Varian printer-plotter
ver
Versatec D1200A printer-plotter. The output is scan-converted and suitable input to `lpr -v'.
FILES
/usr/ucb/aedplot
/usr/ucb/atoplot
/usr/ucb/bgplot
/usr/ucb/crtplot
/usr/ucb/dumbplot
/usr/ucb/gigiplot
/usr/ucb/hp7221plot
/usr/ucb/hpplot
/usr/ucb/implot
/usr/ucb/plot
/usr/ucb/plottoa
/usr/ucb/t300
/usr/ucb/t300s
/usr/ucb/t4013
/usr/ucb/t450
/usr/ucb/tek
/usr/ucb/vplot
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO
graph(1), tplot(1), vi(1), lpr(1B), plot(4B), attributes(5)
SunOS 5.11 3 Aug 1994 plot(1B)