-4

I need to grep process by information containing in CMD column, but this column strings is cut(limited) and needed info is lost. Please suggest how can I enlarge string size allowed for CMD column.

The OS is Solaris 2.1/SunOS 5.1

Sven
  • 97,248
  • 13
  • 177
  • 225
user590444
  • 101
  • 2
  • 2
    add some `w`: `ps efwww` – F. Hauri - Give Up GitHub Jul 12 '13 at 12:30
  • 3
    man ps is your friend. – user9517 Jul 12 '13 at 12:35
  • buahahahahahaaha – user590444 Jul 12 '13 at 12:42
  • 3
    This question appears to be off-topic because it is about basic unix/linux knowledge which is not sysadmin-specific. – Jenny D Jul 12 '13 at 12:46
  • The general approach to this problem is to install the BSD version of ps which DOES support the ww flag. In response to the off topic claims, I'd call this a duplicate long before I would call a question concerning a SunOS machine off topic.. http://stackoverflow.com/questions/5589598/extend-ps-output-to-more-than-80-characters-in-solaris-8 – Daniel Widrick Jul 13 '13 at 03:22
  • ..In Fact, `/usr/ucb/ps` seems to be installed on our solaris boxes so it might be a default thing. (I'm no solaris master) NOTE: I got your desired output with `/usr/ucb/ps -aux` – Daniel Widrick Jul 13 '13 at 03:27
  • The correct way to the see the full command line on Solaris is the `pargs` command (doesn't exist on Linux, is a Solaris thing). The Solaris `ps` command will get you only so far as it doesn't support the Linux-specific `-w` or `-ww` options. You'll come to enjoy the `pargs` command because it produces output you can easily parse. – unixhacker2010 Aug 12 '13 at 09:25

1 Answers1

1

ps -efww will not restrict the width of a line.

w means "wide". ww means "unlimited width".

suprjami
  • 3,476
  • 20
  • 29