GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   WGET Help PLEASE (https://gfy.com/showthread.php?t=602263)

marketsmart 04-25-2006 07:44 PM

WGET Help PLEASE
 
this is what i want to do: use WGET to pull a url of text every 10 minutes and write it to a file. I know how to do this part. what i dont know how to do is get it to continue to write to the file without it overwritting the original file.

example:

the first wget of the url would write this to a text file:

test one
test two

the 2nd wget of the url would add this to the first file

test three
test four
etc..

so after the 2nd wget the file would look like this:
test one
test two
test three
test four
etc..

does anyone here know how to do this?

thanks....

studiocritic 04-25-2006 07:48 PM

lynx -dump -nolinks "http://theurl" >> filetoappend

marketsmart 04-25-2006 07:52 PM

Quote:

Originally Posted by studiocritic
lynx -dump -nolinks "http://theurl" >> filetoappend

0,10,20 * * * * /usr/bin/wget lynx -dump -nolinks "http://theurl" /usr/local/apache2/file_name

is that correct?

studiocritic 04-25-2006 07:58 PM

Quote:

Originally Posted by marketsmart
0,10,20 * * * * /usr/bin/wget lynx -dump -nolinks "http://theurl" /usr/local/apache2/file_name

is that correct?

yes, if you don't want it to work.

i even bolded the important part.

you thought bold meant ignore?

marketsmart 04-25-2006 08:03 PM

huh? i dont see a bolded part????

studiocritic 04-25-2006 08:13 PM

Quote:

Originally Posted by marketsmart
huh? i dont see a bolded part????

then copy and paste my example, and change only the url and the filename.

marketsmart 04-25-2006 08:16 PM

ok i see.. but how do i set it up to pull that link every 10 minutes?

marketsmart 04-25-2006 08:45 PM

bump for help...

BigBen 04-25-2006 10:46 PM

Quote:

Originally Posted by marketsmart
ok i see.. but how do i set it up to pull that link every 10 minutes?

Set a cron...

0,10,20,30,40,50 * * * * /command/to/run

marketsmart 04-26-2006 10:42 AM

0,10,20,30,40,50 * * * * lynx -dump -nolinks "http://theurl" /usr/local/apache2/file_name

is this correct?


All times are GMT -7. The time now is 09:12 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123