![]() |
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 |
| i wanto hardcode password for a username to ssh to a server using script | naree | SUN Solaris | 9 | 02-28-2008 10:37 AM |
| What to change my username | alnita | Post Here to Contact Site Administrators and Moderators | 1 | 04-10-2007 04:05 PM |
| username password in script | roshanjain2 | Shell Programming and Scripting | 5 | 02-13-2007 05:47 AM |
| How to input username on text file into finger command on shell script | Micz | Shell Programming and Scripting | 3 | 11-08-2005 02:38 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Get username in script
how would i go about getting the username of the person currently logged in, and then using the username in a shell script? i've tried variations of
user=whoami , 'whoami' , $whoami , and none of the above work lolI'd like to get the username to then mount a network share such that the command would be, mount_afp afp://username@dc.fqdns.edu/username /Users/username/Desktop/Home any help on how to accomplish this would be IMMENSELY appreciated :] thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|