in reply to Re: system call works on *nix not NT
in thread system call works on *nix not NT

Thank you for your thoughts: I have now added the full path to rsh as suggested. It does not appear to have changed anything. I'm still looking at the shell quoting idea. Yes, I can run the rsh stuff from the command line on the w2k box just fine. Its only when I try and do it from the perl that things go wrong!

Replies are listed 'Best First'.
Re^3: system call works on *nix not NT
by beable (Friar) on Jul 01, 2004 at 12:03 UTC
    You should do what gaal says, and check the return value from system, and check the $? variable (see perlvar, and use the $! variable if system() doesn't return 0. Also, you might want to consider using the Net::Rsh or Net::SSH modules from CPAN.