homepage Welcome to WebmasterWorld Guest from 54.205.105.23
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
WGET, -q syntax problem
can't stop wget generated empty files
henry0

WebmasterWorld Senior Member henry0 us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3789214 posted 12:19 pm on Nov 17, 2008 (gmt 0)

I run a CRON and get the script location via
WGET, I understand the way WGET works and its files generation (one per cron call)
However I was under the impression that -q should stop those files creation.

Here is my cron line
1 */3 * * * wget -q "htpp:// etc......"

Am I doing it wrong?

My cron runs fine and my script is executed as supposed but the root gets loaded with those empty scripts

 

bounser

5+ Year Member



 
Msg#: 3789214 posted 8:45 pm on Nov 19, 2008 (gmt 0)

Write full path to wget, like /usr/bin/wget

caribguy

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 3789214 posted 8:55 pm on Nov 19, 2008 (gmt 0)

Use a trailing ampersand '&' to run wget as a background process. You can use -O to tell wget where to create its output file.

henry0

WebmasterWorld Senior Member henry0 us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3789214 posted 11:23 pm on Nov 19, 2008 (gmt 0)

bounser Welcome to WebmasterWorld!
Thanks all, that should do it
I'll post if a hit another snag

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved