I think I should explain my problem a little better.

Currently we connect to our server via a telnet session. Users execute a perl script 
that in turn executes another program that outputs printed pages. All these pages has 
the 
users (login) name at the top which is being picked up by the following lines in the 
perl script

$USER=$USERNAME
$ENV("USER")=$USER

I have a web interface which the user accesses by entering in their username/password 
via NT authentication. When I execute my batch file via the web interface the 
username variable does not get printed in the page. All my batch file is doing is 
executing the same command as if it was done from a telnet prompt. Somehow I need to 
get the 
username (from the NT authentication???) passed to my perl script?

I think I'm just rambling. I don't think I'm explaining this properly...



On Wed, 31 Jul 2002 14:51:31 -0400, Jerry Johnson wrote:

> Yes.
> 
> In a bat file I run, I pass in the directory to use:
> 
> perl f:\articles\admin\fax.pl f:\\articles\\ma\\02\\convert
> 
> Then in the perl file, I grab the first argument passed in
> 
> $sgmldir=$ARGV[0];
> 
> Does this help?
> Jerry Johnson
> 
> 
> >>> [EMAIL PROTECTED] 07/31/02 02:24PM >>>
> Hello,
> 
> Is there a way to pass a variable to a perl script using CF?
> 
> I need to pass the username which I dump into a variable when the user logs in via 
>NT authentication to my perl script. This script is being run via a web interface 
>which 
executes a 
> bat file on the server. I the batch file I change directories and execute my perl 
>script.
> 
> 
> 
> 
> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to