![]() |
|
|
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 |
| Running script from other user rather than login user | rawatds | Shell Programming and Scripting | 3 | 01-30-2009 01:18 PM |
| check user id before running script | cpolikowsky | UNIX for Dummies Questions & Answers | 3 | 06-06-2008 01:02 PM |
| AIX:creating user with username more than 8 chars | anuafs84 | UNIX for Dummies Questions & Answers | 0 | 04-14-2007 05:00 AM |
| find the server name a script is running on | shellburger | UNIX for Dummies Questions & Answers | 3 | 08-31-2006 12:15 AM |
| running a script under different user | Gary Dunn | Shell Programming and Scripting | 4 | 12-13-2004 06:17 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Find username of user running the script
Hello All, If I have a simple cgi script and want to find the name of the person accessing the page, is it possible? How do I get the name of this user? Please help. I was trying a vague method but it doesn't seem to work with all browsers and versions ... Code:
$val=$ENV{'HTTP_COOKIE'};
$name = (split ('=',(split(';',$val))[1]))[1];
print "$name";
Regards, garric Last edited by Yogesh Sawant; 06-09-2008 at 08:01 AM.. Reason: added code tags |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|