![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I establish a remote CDE or JDS session on Solaris 10? | ultra0384 | SUN Solaris | 11 | 10-05-2006 02:23 PM |
| sqlplus session being able to see unix variables session within a script | 435 Gavea | Shell Programming and Scripting | 2 | 07-03-2006 07:11 AM |
| mac 10.4>terminal>linux remote server>ssh login accepted>session closed-why? | xprankard | UNIX for Dummies Questions & Answers | 0 | 01-21-2006 07:09 AM |
| Remote Dial-up Modem Printing With Out Cpu On The Remote Side! | jayvee | SUN Solaris | 0 | 08-23-2005 05:23 AM |
| remote x session to a server box w/no IO | SnakeO | UNIX for Dummies Questions & Answers | 2 | 03-13-2005 06:46 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
how to run who am i from remote session
I just moved from AIX 4 to AIX 5.3. the command `who am i` is essential to our logon scripts; but it does not work anymore, it says the process is not attached to a terminal. Is it possible to run this command remotely? It works for remote root sessions. If it is not is there another way to accurately determine the IP address the remote session is currently using? Thanks
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
I solved my own problem, found out $$ is the PID of the current sesison, so instead of
Code:
who am i | awk '{print$6}'
Code:
who -u | grep $$ | awk '{print$8}'
|
|
#3
|
||||
|
||||
|
have you tried
whoami ? |
||||
| Google The UNIX and Linux Forums |