![]() |
|
|
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 |
| Obtain Mac Adress in crontab | Pedro Almeida | OS X (Apple) | 5 | 06-06-2008 09:26 AM |
| How can I obtain Hpux? | arabidi | HP-UX | 4 | 12-21-2006 08:49 AM |
| Remote Copy without entering Username and Password | ilak1008 | UNIX for Dummies Questions & Answers | 1 | 01-11-2006 07:00 AM |
| Obtain Memory on HP UNIX | jonesin | HP-UX | 4 | 10-30-2005 09:53 PM |
| Where to obtain FreeBSD? | treborwallace | UNIX for Dummies Questions & Answers | 3 | 11-30-2001 05:59 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Obtain the remote username?
Hi,
I'm new to Unix scripting so I'm hoping someone can help me out. I have trawled the web trying to find an answer to this but have not been able to find out anything. I'm trying to create a script that when supplied with a hostname, will find out information about the remote machine. I know the admin account details on the remote machine, and can obtain the IP address no problem, but I'm having trouble finding out how to obtain the username of the person that is currently logged into the machine. Just so I can make this clear, I do not want to copy the script onto the remote machine and run it (as in copy the script to the machine and 'whoami'). I actually want to try and obtain the username remotely. I realize that this may not be possible due to security reasons. Any ideas? Many thanks for any help. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|