[HPADM] weird remsh/awk behavior

From: Paveza, Gary (gary.paveza_at_AIG.COM)
Date: 11/05/03

  • Next message: Paveza, Gary: "[HPADM] RE: weird remsh/awk behavior"
    To: "'HP9000 Admin'" <hpux-admin@dutchworks.nl>
    Date: Wed, 5 Nov 2003 09:57:06 -0500 
    
    

    Has anyone noticed the following remsh/awk behavior and if so, a workaround?

    Issuing who on the local machine works as expected.

    $ who
    dmullins pts/ta Nov 2 13:10
    npathil pts/tb Nov 3 16:30
    cdigrego pts/tc Nov 5 05:18

    Issuing who on the local machine and using awk to print out just the user
    name works as expected.

    $ who | awk '{print $1}'
    dmullins
    npathil
    cdigrego

    Using remsh to issue who on a remote machine works as expected.

    $ remsh dhapp01 "who"
    plpcd5 pts/ta Nov 5 09:21
    gpaveza pts/tc Nov 5 09:27

    Using remsh to issue a who on a remote machine and using awk to print out
    just the user name fails to work.
     
    $ remsh dhapp01 "who | awk '{print $1}'"
    sh: 1: Parameter not set.

    ---------------------------------------------------------
    Gary Paveza, Jr.
    Senior Systems Administrator -CSA
    (302) 252-4831 - phone
    (302) 377-1516 - cell

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Paveza, Gary: "[HPADM] RE: weird remsh/awk behavior"