Did U chk the directory u r in
try doing this

`cd $DIRECTORY; cp src dest `;

Ronnie Livingston wrote:
> Hi, I have a textfile with a list of gifs (ex. planet.gif, star.gif)and I
> have a perl program which grabs one of the filenames randomly.  What I
> want to do is use the filename and copy it to random.gif but I keep
> getting the error:
> 
> cp: cannot access planet.gif
> 
> I have been using this in my perl program:
> 
> `cp "$line" random.gif`;
> 
> all the gifs and perl files are in the same directory to.  Am I using
> correct code here?
> 
> -Ronnie
> 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to