Looks like you sent this to the wrong list. You're looking for some *NIX
help and this is a Win32 list.
Run another system command export REMOTE_USER=<value of /usr/bin/id -nu
command>
I'm sure there are some modules to help take this off shelling out to the
system, but I'm not that knowledgeable of them.
Jason
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 11:47 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Cgi Help
Chris,
I guess u got my question wrong or may be I put it in a wrong manner.
I have a programm which is run by any user. I dont want the user to set
his passwd . the system command gets executed within the pgm (
/usr/bin/id -nu) and then set this somehow as $REMOTE_USER before
passing it to my cgi pgm. how can i do it...??
sorry if i have not been able to put it correctly earlier.
Rgds
-----Original Message-----
From: chris.devers [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 9:55 PM
To: Ghodke, Mihir
Cc: chris.devers; perl-win32-admin
Subject: Re: Cgi Help
On Wed, 26 Sep 2001 [EMAIL PROTECTED] wrote:
> Is there a way to set the ENVIRONMENT VARIABLE $REMOTE_USER
> via the command line. I do not want to retrive this variable
> after i run the programme thru the browser. I want ot set
> the variable from command line. If yes then HOW ???
You should be able to SET it from the dos prompt:
C:\home\chris.devers>set REMOTE_USER=foo
C:\home\chris.devers>set
[... lots of output streams by, including...]
REMOTE_USER=foo
[... lots more output ...]
This should then become accessible to your script's environment.
--
Chris Devers [EMAIL PROTECTED]
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin