I'm writing a simple script to download a file from a website using wget. Wget is installed and works in a small script but when added to a much larger script it doesn't work and the command line returns "line 31: wget: No such file or directory" (I deleted some unnecessary commenting so the error proly is no longer on line 31 but is still there.)

and here is the code that I receive the error on.The basics of the code are to try the base filename and if the download for that filename is unsuccessful to try a filename with a letter added on to the end.

I was using eval I suppose out of ignorance. I thought that without the 'eval' it wouldn't execute the command.
I tested the longer script without the eval command and the same error (no such file or directory) occurs.
Eval also worked for the smaller script so I figured if it ain't broke don't fix it.

Last edited by NicKawasaki on Fri Sep 05, 2008 12:11 pm, edited 1 time in total.

Who is online

Users browsing this forum: No registered users and 16 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum