How do you show usernames greater than 8 characters in   /usr/ucb/ps ?

Help!
I am trying to write a process kill script, or rather, modify our linux ones for solaris. The problem is a catch-22 :
a) the string I need to grep for is hidden way up the
command string hence I cannot use 'ps', I need to
use /usr/ucb/ps -auxww .
b) some usernames are greater than 8 characters...
Now this is fine with ps -U command, as this will
correctly match a 9-character username. However
/usr/ucb/ps does not seem to have this option; you
can provide an extra option to get user info to display
in the output under a column heading however this
username is truncated at 8 characers. The
standard username field in both versions of the
ps command is truncated at 8 characters.
how do I grep for my deeply-hidden string and a
9-digin username ?
is there any way to do this in a single command?
I can maybe script this, do a ps -U on the user,
awk the PID out the results, use /usr/ucb/ps and
grep on the PID and the user string ... wondered
if I've missed an option and this can be done by
a single command rather than a script ?
thanks!

Help!
I am trying to write a process kill script, or rather, modify our linux ones for solaris. The problem is a catch-22 :
a) the string I need to grep for is hidden way up the
command string hence I cannot use 'ps', I need to
use /usr/ucb/ps -auxww .
b) some usernames are greater than 8 characters...
Now this is fine with ps -U command, as this will
correctly match a 9-character username. However
/usr/ucb/ps does not seem to have this option; you
can provide an extra option to get user info to display
in the output under a column heading however this
username is truncated at 8 characers. The
standard username field in both versions of the
ps command is truncated at 8 characters.
how do I grep for my deeply-hidden string and a
9-digin username ?
is there any way to do this in a single command?
I can maybe script this, do a ps -U on the user,
awk the PID out the results, use /usr/ucb/ps and
grep on the PID and the user string ... wondered
if I've missed an option and this can be done by
a single command rather than a script ?
thanks!

Similar Messages

  • How do you get to greater than, less than symbols ( , )

    Trying to find these symbols on keyboard. Anybody know if they are available?
    Ken

    If using the Samsung keyboard:  press Sym, then press 1/2
    If using the Swype keyboard:  press 123 (in lower left-hand corner), then press the shift key (looks like a 1 in a box next to a 2, it's just above the Swype key)

  • How do I download files greater than 200MB to my Iphone now my music is in the iCloud?

    How do I download files greater than 200MB to my Iphone now my music is in the iCloud? I still have my music on my hard drive of course.

    Go to settings --> store --> and make sure automatic downloads for music is on.  If you download music in iTunes, it should automatically download to your phone.

  • How can you set up more than one device on iTunes. I have an iPad, iPod, itouch and iPhone. I don't want the same on all devices.

    How can you set up more than one device on iTunes? I have an iPad, iPod, itouch and iPhone. I don't want the same on all devices. I have all my music/videos on iTunes on my mac book pro. Can you set up separate folders for each device and drop in what ever music/videos from the main iTunes library?

    In itunes it is called syncing and you can choose exactly what content to sync to all devices and it can be different for all of them
    How to sync

  • How do you show the number of days per month?

    How do you show the number of days per month?
    I am working on a budget.  I want to know how much to amortize each month to fund an investment.  Income comes monthly, but expenses leave in days, or weeks.  The number of days and weeks in months vary. 
    I want to figure out income and expenses per day, per month and per year, so I know how much can be invested each month, week or day.  For a start I would like a formula that shows how many days are in each month?

    thanks..
    I solve my problem as
    public class MyExample {
        public static void main(String a[]) {
            String stdate = "2009-03-01";
            java.sql.Date currentDate = new java.sql.Date(System.currentTimeMillis());
            java.sql.Date preDate = java.sql.Date.valueOf(stdate);
            System.out.println(currentDate);
            System.out.println(preDate);
    //        int dateCom = preDate.compareTo(currentDate);
    //        System.out.println(dateCom);
            long diff = currentDate.getTime() - preDate.getTime();
            int days = (int) Math.floor(diff / (24 * 60 * 60 * 1000));
             System.out.println(days);
    }

  • How do you show only one caller's video display wi...

    How do you show only one caller's video output with four people sharing a video call? i.e. the call originator wants to show a DVD video on a TV screen and the other callers want to view the video on full screen not just one fourth of their screen.

    Thought I'd try this just in case they are stripping out attachments.
    Gary Grow
    6457 Audubon Sq Dr N
    Mobile, AL 36695
    Email: [email protected]
    Cell: (251) 422-8817
    The American Creed by William Tyler Paige
    I believe in the United States of America as a government of the people, by the people, for the people; whose just powers are derived from the consent of the governed, a democracy in a republic, a sovereign Nation of many sovereign States; a perfect union, one and inseparable; established upon those principles of freedom, equality, justice and humanity for which American patriots sacrificed their lives and fortunes. I therefore believe it is my duty to my country to love it, to support its Constitution, to obey its laws, to respect its flag, and to defend it against all enemies.

  • How do you show calendar items in Mail?

    How do you show calendar items in Mail?

    The only way possible to send a non-text file by e-mail is as an attachment. Different e-mail programs will handle JPEG attachments differently. Some will show the attachment within the message and some will not.

  • In Turkish QWERTY Keyboard you can type less then symbol " " but you can type greater than symbol  by using shift , why ??

    In Turkish QWERTY Keyboard you can type less then symbol "< " but you can type greater than symbol  by using shift <, why ??

    In Turkish QWERTY Keyboard you can type less then symbol "< " but you can type greater than symbol  by using shift <, why ??

  • How do you show thumbnail images for the contacts?

    How do you show thumbnail images for the contacts on the iPod?
    -Thank You

    In another thread I posted a suggestion to try when the iPhoto app in the Application folder will not work:
    after upgrading the OS, iPhotos (and Aperture for that matter) should still be in the Applications folder...
    And running well in 10.10.3.
    If it stops running in a next "update" do not throw it away: most apps will continue running as follows:
    In the Applications folder "rightclick" (CTL+click) the iPhoto app, then "show package contents", then click the MacOs folder open: you see the real app (dark grey), rightclick this and choose "make alias", an alias is made, move this alias to the Applications folder and use it to run iPhoto.
    Same for Aperture.
    In older OS this survived several upgrades....
    Lex

  • How do you show what time an sms message was recieved or sent?

    how do you show what time an sms message was recieved or sent?

    Hi,
    I had a simmilar requirement once, i also had to display some meaningful message with the busy mode icon, but i guess that comes directly from the WD Framework and is not possible to be changed. Refer the following thread, i raised that time.
    Web Dynpro ABAP
    Dont have much idea if somethig exists in portal for this.
    Regards,
    Runal

  • How do you show reply, forward, and delete options in received email on IPhone 4

    How do you show reply, forward, and delete options in received email on Iphone 4

    What IOS are you running on the phone?
    When you open an email, at the bottom of the screen you should see a tool bar of icons. The curved back arrow will bring you to either forward or reply an email. The little trash can will let you delete an email.
    Are you not seeing the tool bar?

  • Greater than 4000 characters in OBIEE 11g

    Dear all,
    I have a table, just one column.
    In Analysis, I designed a table with this column content the data as text greater than 4000 characters.
    Can I show all of them in OBIEE ?
    Can I change the column datatype?
    Anyone help me to resolve this issue.
    Thanks and Regards,
    David,...

    I guess you will have problem displying them in OBIEE since (The data type would be long);
    You can not use long datatype column in below cases;
    1. A value of datatype LONG was used in a function or in a DISTINCT, WHERE, CONNECT BY, GROUP BY, or ORDER BY clause. A LONG value can only be used in a SELECT clause
    2. It can not be used in expressions or conditions
    3. It can not be used in select lists of subqueries or queries combined by set operators
    Make sure your generated query is not doing the above things. First thing Distinct will come in the obiee queries by default. Try to avoid distinct,group by,order by in your reports. Direct database request for the report can help you in this case.
    Mark Correct if it helps.
    Regards,
    Kashi

  • Count statement for fields greater than 10 characters

    Hi,
    I am trying to write a query to select results from a database table where the results are only fields greater than 10 characters in length.
    e.g.
    Table
    Employee----
    Andrew
    Jennifer Smith
    Jamal
    the query would only show the result Jennifer Smith because this field exceeds 10 characters in length.
    Any help is appreciated....

    Have you tried coding anything yet for this homework assignment?
    HINT: Use the LENGTH() function.

  • Unit Of Measurement Greater Than 3 Characters

    How can I create Unit Of Measurement greater than 3 Characters.

    the 2 characters for UOM are for identification & you can maintain the Description..
    and based on the Description you can choose the UOM..
    Did you know the impact of incrteasing the UOM from 2 character to 3 Character..
    the UOM has to be stored in many tables, and think of the Space in tables for Transactional data..

  • Trying To Insert XML String Greater Than 4000 Characters in PHP Fails

    Dear Sir,
    Subject:-Trying To Insert XML String Greater Than 4000 Characters in PHP Fails ORA-01704.
    In an attempt to design web app in PHP and inserting data into "CLOB" field of "articles" table associated with it, returning ORA-01704: string literal too long error.
    Platform: OEL5
    Database 11g(11.0.7.0)
    php : 5.2
    I refer to oracle document ID: [ID 336888.1] it is asking to contact support.
    Please help us in this regards.
    Many Thanks,
    mkyazdani

    Hi,
    I appreciate you, yes it is similar i have referred that manual and also inform to our php developer about the changes we need to make in our php script.
    Regards,
    mkyazdani

Maybe you are looking for