Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cp cannot find the file that was downloaded with wget command

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
I have a script like so
Code:
#!/bin/sh
wget -O download.txt "[URL unfurl="true"]http://www.someurl.com"[/URL]
cp download.txt temp_download.txt

and the error message I am getting is
cannot stat `download.txt': No such file or directory
My guess is that wget is somehow executing after the cp command even when it is before cp in the shell script?
 
plz ignore this post.
It was actually something with my linux config,
the code works just fine.

Sorry =)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top