Thanks a lot
I really don't understant what's meant by post in HTML, and cross post
ya it did worked on prompt
i have the soln as well the problem was escaping @with \ i.e. root\@
Regards
Pradeep
----- Original Message -----
From: "Allegakoen, Justin Devanandan"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 07, 2002 11:26 AM
Subject: RE: [Perl-unix-users] rcp says permission denied , or unknown host
> -------------------8<-------------------------------------------
> system("rcp $workdir/installP.pl $remhost:installP.pl");
> says permission denied
>
> i am not much familier with rcp
>
> i have tried several combination such as applying " root@ " before
> $workdir
> etc sometimes it says permission denied or else it says unknown host
>
> machine on which i am writing script , i am a user not root
> at many places scripts assume root so i put " -l root" with rexec or
remsh
> not know about rcp -
>
>
> system("rcp $workdir/installP.pl $remhost:installP.pl");
>
> " $remhost root " entry is there in .rhosts
> see if anyone can tell me the possible causes.
> -------------------8<-------------------------------------------
>
> Please dont post in HTML, and dont cross post either.
>
> Does rcp $workdir/installP.pl $remhost:installP.pl work from
> the command prompt?
>
> If it doesnt then theres no way that perl will be able to.
>
> You can help yourself with some form of error checking:-
>
> system(rcp $workdir/installP.pl $remhost:installP.plr) or die "Cant copy:-
> $!\n";
> _______________________________________________
> Perl-Unix-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs