There's a quoting issue in your rsh line, unless it's been created by your email 
program.

--------------------------
David Olbersen 
iGuard Engineer
11415 West Bernardo Court 
San Diego, CA 92127 
1-858-676-2277 x2152


> -----Original Message-----
> From: Distribution Lists [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 31, 2003 3:07 PM
> To: [EMAIL PROTECTED]
> Subject: should be simple perl cgi
> 
> 
> Can anyone please tell me what is wrong with this
> 
> #!/usr/bin/perl
> 
> print "Content-type:text/html\n\n";
> 
> $OUTPUT = `rsh testaix "ldapsearch -h <hostname> -D "cn=root" -w
> <password> -b "o=<company>,c=us" uid=<userid> userpassword | grep
> userpassword | cut -f 2 -d ="`;
> 
> chomp ($OUTPUT);
> 
> 
> print "<META HTTP-EQUIV='refresh' CONTENT='0;
> URL=https://testaix/mail/mail/src/redirect_pd.php?secret=$OUTPUT'>\n";
> 
> basically, $OUTPUT has a password that I get from LDAP, and I 
> want to send
> this variable to via a redirect to redirect_pd.php
> 
> When I run from command line it looks good
> 
> [EMAIL PROTECTED] cgi-bin]# ./test1.pl
> Content-type:text/html
> 
> <META HTTP-EQUIV='refresh' CONTENT='0;
> URL=https://testaix/mail/mail/src/redirect_pd.php?secret=hamster1'>
> >
> 
> but through a web browser $OUTPUT is a null value.
> What am I missing here ?
> 
> thanks
> 
> 
> 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to