![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Extract time and host IP from 'who' command? | SilversleevesX | UNIX for Dummies Questions & Answers | 2 | 05-06-2009 02:05 PM |
| returned from remote command | Frank2004 | HP-UX | 2 | 04-30-2008 11:29 AM |
| script or piece of code where the data returned by a stored procedure you are writing | enigma_83 | Shell Programming and Scripting | 3 | 04-25-2008 06:44 AM |
| 'who' command | pythonman | UNIX for Dummies Questions & Answers | 3 | 05-25-2005 11:20 PM |
| command find returned bash: /usr/bin/find: Argument list too long | yacsil | Shell Programming and Scripting | 1 | 12-15-2003 06:38 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Anyone know how to get the data out of the "who" command?
I'm still in lukewarm pursuit of creating an OS X-like welcome message at the start of any Terminal session, sans having to use either bash login or calling up ssh. My trials & errors and surfing around have narrowed it down for me somewhat. The 'who' command appears to return a string of the exact kind of data I would like to break up and re-arrange into part of the welcome. I just haven't puzzled out how to 'pull' this returned data, break it up and set variables to the three different 'fields' the command provides (USER, TIME and COMMENT), such that they can be placed in the right positions of a string like Quote:
Considered responses are welcome. BZT |
![]() |
| Bookmarks |
| Tags |
| bash, data extraction, login, terminal, who command |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|