#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Posts
    11
    Rep Power
    0

    Question unable to see the ps -ef full details


    I am unable to see the command in ps -ef output. The last colomn of the ps -ef output consisting of the command is truncated. I need the full path of the process command. is there any way to acheive this
    Thank you
    Shameem S
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    I usually do a:

    # export COLUMNS=1000
    # ps -ef|less
    (less will let you scroll horizontally then )

    but if this works will depend on your specific versions of UNIX, "less" and "ps".

    hth,
    M.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    137
    Rep Power
    0
    This might work, depending on unix flavor:

    ps -ef | fold

    Will wrap long lines to next line.
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Posts
    4
    Rep Power
    0
    If you are using solaris try /usr/ucb/ps -auxwww instead of ps -ef

    it doesn't truncate the output like ps does.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Posts
    11
    Rep Power
    0

    Thumbs up wanna cut


    Hey I got this with the help of /usr/ucb/ps -auxww. That made my life easier. Thank you.

    One more small help needed. I want to cut any one field ( I mean column) from the output of /usr/ucb/ps -auxww. I am unable to find the field separator to use "cut" command. can any body help me out to solve this. Thank you
    Shameem S

    FOr .e.g.
    I have the total output as follows
    root 1695 2.3 0.2 4008 2936 ? S 13:32:41 0:01 /opt/opendeploy/bin/iwdeploy -fs /opt/opendeploy/conf/branches/SolarisFarm/content/technology/governance/iw.odclient.cfg -V 1 staging-to-s0056pdv

    Now I want to cut the parts
    SolarisFarm/content/technology/governance and
    staging-to-s0056pdv

    Please let me know...

IMN logo majestic logo threadwatch logo seochat tools logo