On Wed, Jul 19, 2006 at 08:32:25AM -0700, Chad Anderson enlightened us: > Matt Hyclak <[EMAIL PROTECTED]> wrote: On Tue, Jul 18, 2006 at 08:41:49PM > -0700, Chad Anderson enlightened us: > > > > Matt Hyclak wrote: On Tue, Jul 18, 2006 at 03:15:40PM -0700, Chad > > > > Anderson enlightened us: > > > > I am trying to run script-update on a windows xp pro machine with > > > > cygwin. When I run it I get the following: > > > > $ ./script-update > > > > wget: Command not found. > > > > ./script-update: line 45: --output-document: command not found -- this > > > > line is repeated 83 times! > > > > > > > > I have the latest version of script-update (1.4) from CVS. As an FYI, > > > > ./prepare runs fine. > > > > > > > > Thank you for this tool and the help! > > > > > > > > > > Make sure wget is installed and in your path. > > > > > --- Thanks Matt. Please explain what you mean by installed. I did not do > > anything special to install it. Wget is in the root folder, the bin > > folder, the tools folder and the script folder. Wget appears to work with > > prepare when I run that. And yes I am using version 4.6. > > Well, can you run wget from the same command line you are trying to run > script-update from? > --yes I can > > Is the path to wget messed up in the script-update file > relative to your installation? > > --Good question. I will try to answer. I took the script as being > complete, but now see that there appear to be some variables, WGET=$(which > wget), FIND=$(which find), GREP=$(which grep), SORT=$(which sort). > > I am not sure what is supposed to go in here. I experimented some. If I > put WGET=$(./wget.exe) then the "wget: command not found" goes away, but > then I get "./script-update: line 45: wget:: command not found". I have > tried changing this to WGET=$(/cygdrive/d/unattended-4.6/tools/wget.exe) > but I still get "./script-update: line 45: wget:: command not found". > > --If I run find, grep, and sort from the same command prompt they run. By > what you have written it seems this should be obvious, but I have searched > the unattended information and cannot find any reference to having to set > these variables in script-update before running that script. The latest > prepare script (that has wget in it) works just fine when run from the > same location (/cygdrive/d/unattended-4.6/tools) so can you explain why > the path would be different and/or how to set these variables correctly? >
The $() construct means "run this command and put the results in the variable to the left of the = sign. In your case, I'm guessing the which command isn't found or something weird so that the WGET variable isn't set. You were on the right path, just remove the $() and see if it works, so: WGET=/cygdrive/d/unattended-4.6/tools/wget.exe and see how that goes. Matt -- Matt Hyclak Department of Mathematics Department of Social Work Ohio University (740) 593-1263 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ unattended-info mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/unattended-info
