Computing.Net > Forums > Linux > wget syntax

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

wget syntax

Reply to Message Icon

Name: Deputy DooDah
Date: August 21, 2003 at 09:20:02 Pacific
OS: redhat 8.0
CPU/Ram: 2.0/512
Comment:

Hi folks,
I've set up a cron job that uses wget to download Norton virus definitions once every day (I have a lot of windows users).

The command that does it all is:

wget http://securityresponse.symantec.com/avcenter/download/pages/US-N95.html/20030820-005-i32.exe

What happens though is that the file is downloaded to root's home directory.

What I would like to do is download it to /Public/Virusdef, AND change the name of the file to virusdef.exe, AND change the permissions on the file so that anyone can execute it.

Can anyone help?



Sponsored Link
Ads by Google

Response Number 1
Name: peter4u
Date: August 21, 2003 at 20:44:52 Pacific
Reply:

Why don't you just add 2 lines to your script?

cp 20030820-005-i32.exe /Public/Virusdef/virusdef.exe

chmod 0755 /Public/Virusdef/virusdef.exe



0

Response Number 2
Name: Deputy DooDah
Date: August 22, 2003 at 09:07:28 Pacific
Reply:

Thanks for the info. It works just fine.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: wget syntax

Wget command question www.computing.net/answers/linux/wget-command-question/26899.html

wget question www.computing.net/answers/linux/wget-question/21432.html

wget - help www.computing.net/answers/linux/wget-help/30056.html