LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2012, 04:39 PM   #1
osmy
Member
 
Registered: Mar 2011
Posts: 58

Rep: Reputation: 0
Smile A cronjob help to visit url auto?


Hello, I want to visit an url using Cronjob command. So the url http://www.xxx.com/test/cron.php will be visited on every 3 hours everyday. I wrote this is that true?



* */3 * * *
curl http://www.xxx.com/test/cron.php
 
Old 03-04-2012, 04:48 PM   #2
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
0 */3 * * * curl -q http://www.xxx.com/test/cron.php

to disable print out does it works?
 
Old 03-04-2012, 08:39 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Quote:
to disable print out does it work?
what does this mean?
Why not just try it?

If the cmd does produce outut, you can capture it like this
Code:
0 */3 * * * curl -q http://www.xxx.com/test/cron.php >/dir/prog.log 2>&1
 
Old 03-06-2012, 11:14 AM   #4
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
I am using Centos with Cpanel, it sends auto mail to root mail adress I want to disable this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto deleting spam assasins spam box via cronjob and Roundcube Junk Folder osmy Linux - Newbie 8 01-23-2012 05:22 PM
CronJob Run URL Problem c a g a t a y Linux - Newbie 10 10-09-2011 01:08 PM
How to visit a url using a shell script or unix command Keerthi Shankar Pattabhi Linux - Newbie 5 08-02-2011 12:00 PM
auto url parsing on console bluecadet Linux - General 1 12-18-2001 05:07 AM
cronjob for auto-ftp bktpv Linux - Networking 2 12-08-2001 08:30 AM


All times are GMT -5. The time now is 10:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration