Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

where to get and install "win32" module for perl 5.8.0 on linux?

Status
Not open for further replies.

chauzer

Programmer
Aug 19, 2004
2
US
hi all, newbie to perl here..

we have perl 5.8.0 running on Linux here on our server. and i need to use the Win32::LoginName() function to retrieve the windows username thats running the perl process.. everyone's been telling me i need to get the "win32" module, but when i look on CPAN, i can't find any module thats called just "win32"... all of them have something after it like Win32::API, etc.. where can I download the win32 module so i can install it on our server? and how difficult is it to isntall it on Linux?

thanks!

 
Since it is "Win32" it logically wouldn't be designed to run in linux, and since the perl script (appears) to be hosted on the server, even if it did exist/run, it would always return the same value since CGI scripts are executed server side, not client side.
 
$ENV{'REMOTE_USER'} should give you the user name that's logged into the client machine.
$ENV['REMOTE_IDENT'} might be another option

HTH
--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top