Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: parsing output of UNIX `who` command

by johngg (Canon)
on Oct 02, 2006 at 13:21 UTC ( [id://575874]=note: print w/replies, xml ) Need Help??


in reply to Re^3: parsing output of UNIX `who` command
in thread parsing output of UNIX `who` command

Er ... yes.

$ /usr/bin/who -q # You run 'who -q' and get ... anomonk root # One or more lines of space-separated user names # users=2 # Followed by a summary line $ # And back to the prompt

If there are lots of users on a system, who -q will output multiple lines of users rather than wrapping one long line. It looks like it assumes a terminal width of 80.

Cheers,

JohnGG

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://575874]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found