in reply to Re: scp fails in cronjob - open3 error
in thread scp fails in cronjob - open3 error

I performed the following from my command prompt:
aplpha:/# which scp /usr/local/bin/scp
So I then added the line
#!/usr/bin/perl $ENV{'PATH'} = "/usr/local/bin/scp:".$ENV{'PATH'};
So the second line from the top, with the $ENV defined and the script still doesn't work? I get the same error.

Is my path defined properly?

Papai

Replies are listed 'Best First'.
Re^3: scp fails in cronjob - open3 error
by papai (Novice) on Jun 26, 2008 at 15:56 UTC
    I got it working, my removed "scp" in my path and it now works.

    Cool, I have grown from this experience,

    Thanx.

    Papai