Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Displaying VERY long process names with ps -ef Post 98289 by m223464 on Tuesday 7th of February 2006 07:12:39 AM
Old 02-07-2006
Thanks for your suggestions but sadly none of these have worked. I get syntax errors on two of them. "ps auxww" does run but still truncates the output.

I guess the syntax issue's down to the O/S version or shell. I'm on AIX 5.2, & ksh.

Code:
# ps -efx|grep SLRS
ps: illegal option -- x
Usage: ps [-ANaedfklmM] [-n namelist] [-F Format] [-o specifier[=header],...]
                [-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userlist] [-c classlist]
Usage: ps [aceglnsuvwxU] [t tty] [ProcessNumber]

Code:
# ps -Ao pid,args -ww
ps: illegal option -- w
ps: illegal option -- w
Usage: ps [-ANaedfklmM] [-n namelist] [-F Format] [-o specifier[=header],...]
                [-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userlist] [-c classlist]
Usage: ps [aceglnsuvwxU] [t tty] [ProcessNumber]

I looked into the -ww switch which wasn't recognised but found eww instead so I tried "ps gewws" but yet again it truncated the long commands.

Looks like this might not actually be doable but I'm still open to other suggestions.

Gareth
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

linux question, pardon, on long file names

Sorry, hope no one minds the linux question here, I use both unix and linux, and have come across a problem. On my linux box i have a dual boot, and i've set it up so i can access my windows data partition while in linux mode (mount the vfat partition), but linux doesn't recognize long file names,... (2 Replies)
Discussion started by: kymberm
2 Replies

2. Windows & DOS: Issues & Discussions

Dos window, long file names prob

At the dos command prompt, does anyone remember how to make it recognize long file names? ie, windows long file names for folders, my documents, if i'm at the :> prompt and want to change to that directory, how do i make it skip the space? I've tried cd "my document" cd my\documents cd 'my... (4 Replies)
Discussion started by: kymberm
4 Replies

3. UNIX for Dummies Questions & Answers

Displaying file names before a particular creation date

Hi!! I wanna display file names which are created before/after a particular date. I wud be glad if anybody can help me out in that. Thanx Dhruv (1 Reply)
Discussion started by: dhruv_saksena
1 Replies

4. Solaris

mkisofs and long file names

Well im using mkisofs to create iso images in Solaris 10 and then i use cdrw -i to burn the images to the cd the problem which i noticed recent ( im new to mkisofs) i noticed its break the long file names making them shorter i searched in its help and i find two parameters one -l and one... (2 Replies)
Discussion started by: XP_2600
2 Replies

5. Shell Programming and Scripting

ps -ef does not displaying the running process

Hi, I am using the monitor shell script to check the particular process is running or not.If it is not running this monitor shell script will automatically start the process.I am using the ps -ef command to check the process availablity.But the problem is some times the ps -ef | grep "Process... (8 Replies)
Discussion started by: sureshbabuc
8 Replies

6. Shell Programming and Scripting

Find and rename long file names (html)

Hi Guys, I need a help. I have 1130 zip files. Each one of them has files including 1 html file with long file name (includes special charactors, Alphabetic and numbers). I have copied all 1130 zip files to my linux system and extracted using below command. Find . -name "*.zip" -exec... (7 Replies)
Discussion started by: Rajmani
7 Replies

7. Shell Programming and Scripting

need help with displaying only names using ls -l

Hi I am kind of stuck I need help with printing only the names of the folder in the format LAST NAME, F so last name and the first character of first name using ls -l command in the /home directory currently they are in the format firstname.lastname please advice (4 Replies)
Discussion started by: classic
4 Replies

8. UNIX for Advanced & Expert Users

script regarding listing long group names

Hello, When listing the file systems (using ls -ltr) , if the group names are longer the group name is getting truncated. Can someone help with the script which would display the truncated group name? I appreciate if someone could help in this regard. (1 Reply)
Discussion started by: mike12
1 Replies

9. Web Development

Too long in displaying the data in a Web Browser

this is my another one question as well as my sample program. Because of the big data the gets from the database.,it takes time to display the output in a web browser.,is there any way to display the output as faster as it can..?my time is wasting because of too long to display.:confused: ... (3 Replies)
Discussion started by: Jeneca
3 Replies

10. SCO

Long file names within shell script

I am downloading a zip file that contain files that are very long. I am trying to process them, but cannot. I can move the files from one directory to another at the shell prompt, but not within a shell script, I get a stat error. The files look somewhat like this; ... (5 Replies)
Discussion started by: trolley
5 Replies
pgrep(1)						      General Commands Manual							  pgrep(1)

NAME
pgrep, pkill - search or kill processes based on process name and attributes SYNOPSIS
dlim] etimelist] pgrplist] grouplist] ppidlist] prmgrplist] sidlist] statelist] termlist] userlist] ruserlist] vszlist] psetlist] [pattern] etimelist] pgrplist] grouplist] ppidlist] prmgrplist] sidlist] statelist] termlist] userlist] ruserlist] vszlist] psetlist] [pattern] DESCRIPTION
searches for processes having attributes matching the selection criteria specified by its arguments. The process ID numbers of the matched processes are printed, separated by a delimiter, the default being the newline. Each attribute option can take multiple values separated by comma. will select those processes that match all the attribute options specified. If an attribute option has multiple values, then the process needs to match one of the values. For example: matches processes having effective user ID OR AND real group ID OR selects processes similar to but instead of printing the process ID numbers, it signals the matched processes. The user can specify the signal to be sent to the matched process as the first argument to By default is assumed. Options The following options can be used to specify processes to be selected. Specifies the signal to be sent to each matched process If no signal is specified, is sent by default. The value of signal follows the same syntax as that of the command; see kill(1). This option, if specified, should be the first argument to Specifies the delimiter to be used while printing the matched entries only). The default delimiter is a newline. Selects processes whose elapsed time matches the time limits specified in timelist. This time limit can be specified as given below: which will be interpreted as elapsed time than time1 and than time2. If the argument is only time, then is assumed. The syntax for specifying time is: D:H:m:s for D days, H hours, m minutes and s seconds. If one of the fields is empty, then 0 is assumed for that field. For example: will be interpreted as elapsed time greater than 300 seconds, and will be interpreted as elapsed time (greater than 30 minutes and 10 seconds AND less than 2 days, specified by 'el'2) OR (greater than 3 days) OR (less than 10 seconds, specified by 'el'10). Perform pattern matching on the entire command line rather than the command name. Select processes whose real group ID numbers or group names are given in grouplist. Select processes whose process group ID numbers are given in pgrplist. Long listing only). Print the command name along with the PID. If used with the option, the command line argument is printed instead of command name. Select the most recently created process matching the criteria. This option is mutually exclusive with the option. Select the oldest process matching the criteria. This option is mutually exclusive with the option. Select processes whose parent process ID numbers are given in ppidlist. Select processes belonging to PRM process resource groups whose names or ID numbers are given in prmgrplist. See Selects processes whose current state is given in the statelist. The values for statelist can be: Running Sleeping Stopped Zombie Select processes whose session ID numbers are given in sidlist. Select processes associated with the terminals given in termlist. Terminal identifiers can be specified in one of two forms: o the device's file name (such as or o if the device's file name starts with just the rest of it (such as If the device's file is in a directory other than or the terminal identifier must include the name of the directory under that contains the device file (such as Select processes whose real user ID numbers or login names are given in ruserlist. Select processes whose real user ID numbers or login names are given in userlist. Reverse selection. Select processes that do not meet the matching criteria. Perform an exact match of the pattern string. Select processes whose processor set IDs are given in psetlist. Selects processes whose virtual size matches the size limits specified in sizelist. The syntax for specifying size limit is as given below: which will be interpreted as virtual size in kilobytes than lowerlimit and than upperlimit. If the argument is only limit then is assumed. Operands pattern Expression (ERE) pattern to match against either the basename or full process argument string. See regexp(5) for a complete description of the ERE syntax. EXTERNAL INFLUENCES
Environment Variables If is not specified or is null, it defaults to (see lang(5)). RETURN VALUE
and exits with one of the following values: One or more processes matched the criteria. No process matched the criteria. Syntax error in command line. Other errors EXAMPLES
Print PID of the cron daemon: Send signal to Print PIDs of telnet sessions that are active for more than 2 days: WARNINGS
Process information can change while or is running; the picture it gives is only a snapshot in time. With the option, and matches only up to the initial 1020 bytes of command line with the pattern string. and will not match itself. DEPENDENCIES
HP Process Resource Manager The option require the optional HP Process Resource Manager (PRM) software to be installed and configured. See prmconfig(1) for a descrip- tion of how to configure HP PRM, and prmconf(4) for the definition of If HP PRM is not installed and configured and is specified, or fails with error message. FILES
Directory of terminal device files. SEE ALSO
kill(1), ps(1), ptree(1). HP Process Resource Manager: prmconfig(1), prmconf(4) in pgrep(1)
All times are GMT -4. The time now is 05:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy