Welcome to WebmasterWorld Guest from 54.158.228.55

Forum Moderators: bakedjake

Message Too Old, No Replies

WGET, -q syntax problem

can't stop wget generated empty files

     
12:19 pm on Nov 17, 2008 (gmt 0)

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



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

8:45 pm on Nov 19, 2008 (gmt 0)

5+ Year Member



Write full path to wget, like /usr/bin/wget
8:55 pm on Nov 19, 2008 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Use a trailing ampersand '&' to run wget as a background process. You can use -O to tell wget where to create its output file.
11:23 pm on Nov 19, 2008 (gmt 0)

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



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

Featured Threads

Hot Threads This Week

Hot Threads This Month