|We don't bite newbies here... much|
Password request on RCP?by hydo (Monk)
|on Sep 01, 2000 at 11:50 UTC||Need Help??|
hydo has asked for the wisdom of the Perl Monks concerning the following question:
In a script that I am writing I have to rcp a file to another machine. When I test the rcp in a shell it works just fine. But when I do it in perl I always get asked for a password. Anyone have any idea why?
I dont know what rcp would be looking for in my environment, but i'm not sure what else it could be.
my $rcp_command = "rcp $file $username@$hostname:$destfile"; system( $rcp_command );
Pretty simple. Again, if I print() $rcp_command and then cut/paste it to a shell it works without a problem. Also please note that I cannot install any modules on these machines.
Any help would be greatly appreciated.