05-28-2004
Hi,
After some testing I'm sure that's a problem is ps, because I've tried this:
ps -e -o user,args
and the output is like this :
root /usr/lib/saf/ttymon -g -h -p Lyne console login: -T sun -d /dev/console -l con
The rest is truncated.
This shows that ps formats the output in columsn and there is a maxsize for each colum
because in this case is not a problem in the size of the terminal.
This is a little problem but it's annoying because I'm trying to capture some programs which are laucnched with a lot of of arguments and thi is these arguments wich interst me!!
Anyway thanks fort all answer.
Rene
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi!
I have some shell scripts receiving in input lots of parameters and I need to select the ones having a particular value in one parameter.
A typical shell command line is:
PROMPT > shell_name.ksh -avalue_a -bvalue_b -cvalue_c -dvalue_d ...
I used a combinaton of ps and grep commands... (1 Reply)
Discussion started by: pciatto
1 Replies
2. UNIX for Advanced & Expert Users
Hi!
I have some shell scripts receiving in input lots of parameters and I need to select the ones having a particular value in one parameter.
A typical shell command line is:
PROMPT > shell_name.ksh -avalue_a -bvalue_b -cvalue_c -dvalue_d ...
I used a combinaton of ps and grep commands... (5 Replies)
Discussion started by: pciatto
5 Replies
3. AIX
folks;
how can i get longer output than the one i got by using "/usr/ucb/ps awwx"? :mad: (2 Replies)
Discussion started by: moe2266
2 Replies
4. Shell Programming and Scripting
OK, I'm stumped.
I have a shell script that reads a list, and for every item in the list performs a lookup in our Active Directory. Now, it seems that when I pipe the results into grep, the complete results are not there (truncated?). I'm not sure if this is a limit of the pipe, grep, shell... (1 Reply)
Discussion started by: TheCrunge
1 Replies
5. UNIX for Dummies Questions & Answers
Hi Guys,
I have a master script file.
That calls the other script files. The sub script files append some of the data to the log file.
Once the master script completes one sub script execution and returns to execute other sub script that appends to the same log file. the log file gets... (2 Replies)
Discussion started by: Swapna173
2 Replies
6. Linux
Hi, I am getting linking error
i.e.
/ade/aime_urtk/oracle/has/include/caa_ResStateListener.hxx:79: relocation truncated to fit: R_PPC_GO
T16 vtable for CAA::ResourceStateListener
/ade/aime_urtk/oracle/has/lib//libcaad.a(caa_Main.o)(.text+0x88e6): In function `CAA::ResourceStateL... (0 Replies)
Discussion started by: jgobbur
0 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I have used sed command with a file of size 7KB and stored the output to another file.
When i look into the output file, a few file lines at the bottom have got truncated. The sed statement i used is as below. Why does this happen and how to resolve this.
SQL=`sed... (3 Replies)
Discussion started by: madhan@29
3 Replies
8. Solaris
Hi,
I have Solaris-10 server. /usr/ucb/ps auxww is showing full path if I am running it from root. But if I run it from non-root user, its output is truncated. I don't want to use any other alternate command.
Please suggest, what can be its solution.
Terminal is set to term. (21 Replies)
Discussion started by: solaris_1977
21 Replies
9. UNIX for Advanced & Expert Users
Today I needed to take a look through a load of large backup files, so I wrote the following line to find them, order them by size, and print the file sizes in GB along with the filename. What happened was odd, the output was all as expected except for the first output line which had the filename... (4 Replies)
Discussion started by: gencon
4 Replies
10. UNIX for Dummies Questions & Answers
Hi All,
here is an output of my command and the problem is that my output string is truncated, I want to exact the full string, I am on BASH shell, please help me out.
Regards
Rahul
command with Output :
lonss05903:cmdsvc01 /home/cmdsvc01 > ps -aef|grep 'Copy'
cmdsvc01 2642 8675 ... (7 Replies)
Discussion started by: rahulkalra9
7 Replies
getty(1M) System Administration Commands getty(1M)
NAME
getty - set terminal type, modes, speed, and line discipline
SYNOPSIS
/usr/lib/saf/ttymon [-h] [-t timeout] line [ speed [ type [linedisc]]]
/usr/lib/saf/ttymon -c file
DESCRIPTION
getty sets terminal type, modes, speed, and line discipline. getty is a symbolic link to /usr/lib/saf/ttymon. It is included for compati-
bility with previous releases for the few applications that still call getty directly.
getty can only be executed by the super-user, (a process with the user ID root). Initially getty prints the login prompt, waits for the
user's login name, and then invokes the login command. getty attempts to adapt the system to the terminal speed by using the options and
arguments specified on the command line.
Without optional arguments, getty specifies the following: The speed of the interface is set to 300 baud, either parity is allowed, NEW-
LINE characters are converted to carriage return-line feed, and tab expansion is performed on the standard output. getty types the login
prompt before reading the user's name a character at a time. If a null character (or framing error) is received, it is assumed to be the
result of the user pressing the BREAK key. This will cause getty to attempt the next speed in the series. The series that getty tries is
determined by what it finds in /etc/ttydefs .
OPTIONS
The following options are supported:
-h If the -h flag is not set, a hangup will be forced by setting the speed to zero before setting the speed to the default or
a specified speed.
-t timeout Specifies that getty should exit if the open on the line succeeds and no one types anything in timeout seconds.
-c file The -c option is no longer supported. Instead use /usr/sbin/sttydefs -l to list the contents of the /etc/ttydefs file and
perform a validity check on the file.
OPERANDS
The following operands are supported:
line The name of a TTY line in /dev to which getty is to attach itself. getty uses this string as the name of a file
in the /dev directory to open for reading and writing.
speed The speed argument is a label to a speed and TTY definition in the file /etc/ttydefs. This definition tells getty
at what speed to run initially, what the initial TTY settings are, and what speed to try next, (should the user
press the BREAK key to indicate that the speed is inappropriate). The default speed is 300 baud.
type and linedisc These options are obsolete and will be ignored.
FILES
/etc/ttydefs
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsr |
+-----------------------------+-----------------------------+
SEE ALSO
ct(1C), login(1), sttydefs(1M), ttymon(1M), ioctl(2), attributes(5), tty(7D)
SunOS 5.10 14 Sep 1992 getty(1M)