Active Topics

 


Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on Jun 2008
#1
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's Avatar
Posts: 1,245 | Thanked: 421 times | Joined on Dec 2005
#2
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?).
 
Posts: 609 | Thanked: 232 times | Joined on Dec 2007 @ the end of my rope
#3
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/
 

The Following User Says Thank You to lm2 For This Useful Post:
TrueJournals's Avatar
Posts: 480 | Thanked: 378 times | Joined on Apr 2008 @ Chicago-ish
#4
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.
 
Posts: 3 | Thanked: 0 times | Joined on Jun 2008
#5
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
so is this that i need a way to the cron job visit the url just that
 
pixelseventy2's Avatar
Posts: 357 | Thanked: 115 times | Joined on Sep 2007 @ Sunny England :)
#6
Are you just monitoring a web site? If so, could you do something like this:
http://pixelseventy2.net/pixel/Shell...teMonitor.page
__________________
pixel - pushing buttons that shouldn't be pushed, and fiddling with things that shouldn't be fiddled with
 
Posts: 3 | Thanked: 0 times | Joined on Jun 2008
#7
hi,
i´ not monitoring the site i just want that cron job visit the correct url: index.php?etc&etc
just that
 
TrueJournals's Avatar
Posts: 480 | Thanked: 378 times | Joined on Apr 2008 @ Chicago-ish
#8
Then the command you're looking for is:
Code:
wget -q -O /dev/null (WEBSITE HERE)
__________________
Disclaimer: If a program I wrote doesn't work/breaks your tablet... It's not my fault
mcedit | Utility Calculators (WIP) | PyRDesktop
My Blog | Twitter
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:19.