Welcome to Dream.In.Code
Click Here
Getting Help is Easy!

Join 117,278 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,994 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



how execute/visit a site using the cron daemon?

 
Reply to this topicStart new topic

how execute/visit a site using the cron daemon?

jason213123
post 26 Jun, 2008 - 07:12 AM
Post #1


New D.I.C Head

*
Joined: 1 Mar, 2008
Posts: 10



Thanked 1 times
My Contributions


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
User is offlineProfile CardPM

Go to the top of the page


girasquid
post 26 Jun, 2008 - 07:30 AM
Post #2


Barbarbar

Group Icon
Joined: 3 Oct, 2006
Posts: 1,202



Thanked 9 times

Dream Kudos: 625
My Contributions


Use curl, something like this:
CODE

curl http://thesite.com/thefile.php


Read more about how to use it on the curl manpage.
User is offlineProfile CardPM

Go to the top of the page

Tom9729
post 28 Jun, 2008 - 07:03 PM
Post #3


Debian guru

Group Icon
Joined: 30 Dec, 2007
Posts: 1,428



Thanked 10 times

Dream Kudos: 325
My Contributions


You could ping the site to check whether it is up or not.

I'm not really sure about the rest of what you said. Please use punctuation when you post, it makes it much easier for others to understand what you are saying. smile.gif
User is offlineProfile CardPM

Go to the top of the page

no2pencil
post 28 Jun, 2008 - 07:05 PM
Post #4


Wet D.I.C.

Group Icon
Joined: 10 May, 2007
Posts: 5,406



Thanked 35 times

Dream Kudos: 2325

Expert In: Goofing Off

My Contributions


QUOTE(Tom9729 @ 28 Jun, 2008 - 10:03 PM) *

You could ping the site to check whether it is up or not.

Granted, as long as the site isn't blocking ping requests.

Curl, wget, fetch, lynx, anything text related that has some sort of interaction with the site.
User is online!Profile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/6/08 10:37PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month