Hi,
I'm trying to connect to a unix box from an nt box to run a perl scrip
housed on the unix box and I can't get rsh to work.  The script works fine
from the command line but give me this error as a cgi:

"rocks.ci.pasadena.ca.us: remuser too long rsh: can't establish connection"
-------------

the code:

$where = "exec_out.1";
$patron_quoted = "2900999999999666";
system "rsh rocks.ci.pasadena.ca.us -l www-kuth /test/ADV1/www-kuth.pl
$patron_quoted >$where";
open(IN, $where);
while (<IN>){
   @pairs = split(/\t/,$_);
   foreach $pair (@pairs)
   {
   ($name,$value) = split(/=/,$pair);
   $LIBRESP{$name}=$value;
   }
}
close IN;
system "del $where";
$patron_ok=($LIBRESP{'$patron_ok'});
print "<h2> patron ok = $patron_ok </h2> \n";

------------

Right now I'm just trying to connect from my workstation running nt and
personal web server before moving the script to an nt server iis 4.0 (sp 6).
I'm running activeperl 5.6.1.  The system command seems to run fine in the
cgi (I've tested it with simple commands, like ping and dir) but I just
can't get rsh to work. I've even tried:
`rsh rocks.ci.pasadena.ca.us -l www-kuth /test/ADV1/www-kuth.pl
$patron_quoted`;
which gives me the same error.  I saw in one of the other listings that
someone with a similar rsh problem discovered that they needed to create a
new console for cgi which i *think* I did using :
adsutil.vbs SET W3SVC/1/CreateCGIWithNewConsole 1
To my surprise this command seemed to work using personal web server but
didn't fix the rsh problem.  Any thoughts or could someone suggest a better
way to do this?  I just need the nt perl program to be able call and read
the output from the unix perl program.

Thanks is advance--

Kim

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to