maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   how execute/visit a site using the cron daemon? (https://talk.maemo.org/showthread.php?t=21319)

jasonx22 2008-06-26 15:03

how execute/visit a site using the cron daemon?
 
hi,
i need to execute/visit a site to check if the site is up or not i have a server that have cron shedule that can execute a php file now how can i execute/visite a site using the same way as i execute a file?
thanks a lot for your help
Edit/Delete Message

gnuite 2008-06-26 15:13

Re: how execute/visit a site using the cron daemon?
 
There are certainly many ways, but using the "wget" command may be the easiest. It's available in one of the built-in repositories (Extras, maybe?).

lm2 2008-06-26 16:25

Re: how execute/visit a site using the cron daemon?
 
I have no idea what you're asking, but the beginning of your post makes me wonder if this wouldn't be helpful:

http://downforeveryoneorjustme.com/

TrueJournals 2008-06-26 20:17

Re: how execute/visit a site using the cron daemon?
 
What I got from the post is that you want to open a web browser and go to a certain website using cron. This can be accomplished using the command:
Code:

browser --url "(URL goes here)"
I don't think you need the quotes, but it doesn't hurt to include them. The reason I could see this being helpful is for, say, opening the news every morning so you can read it when you wake up.

jasonx22 2008-06-27 09:00

Re: how execute/visit a site using the cron daemon?
 
hi,
my question is that:
the site have a script that run only with the correct url "index.php?etc&etc"
and when i visit the site with that url the site perform maintense of the content and send emails to the users etc
so i don´t want do this manualy or see if the site is online or not i just want a way to enter in cron job to visit a site as same way google agent visit or as any single person visit i have see the wget but so far i he dont does want i want probaly because i not using the correct command sintax :mad:
so is this that i need a way to the cron job visit the url just that:)

pixelseventy2 2008-06-27 09:02

Re: how execute/visit a site using the cron daemon?
 
Are you just monitoring a web site? If so, could you do something like this:
http://pixelseventy2.net/pixel/Shell...teMonitor.page

jasonx22 2008-06-27 09:11

Re: how execute/visit a site using the cron daemon?
 
hi,
i´ not monitoring the site i just want that cron job visit the correct url: index.php?etc&etc
just that:)

TrueJournals 2008-06-28 01:20

Re: how execute/visit a site using the cron daemon?
 
Then the command you're looking for is:
Code:

wget -q -O /dev/null (WEBSITE HERE)


All times are GMT. The time now is 12:07.

vBulletin® Version 3.8.8