Solved

php cron with nice

Posted on 2008-06-19
2
560 Views
Last Modified: 2013-12-07
I need to run a php file with cron and the log - not so difficult.

But my host has a restriction that requires the  use of nice with an increment of 10 as well.

my crontab so far reads :

32 * * * *  lynx -dump http://www.ouhypo.org/dev/site_monitor.php >/usr/home/copycat/cronlogs/sitemonitor.log

do i add the nice line /usr/bin/nice - n 10  between the cron times and the lynx command?
0
Comment
Question by:antonumia
2 Comments
 
LVL 24

Accepted Solution

by:
glcummins earned 125 total points
ID: 21824036
32 * * * *  /usr/bin/nice -n 10 lynx -dump http://www.ouhypo.org/dev/site_monitor.php >/usr/home/copycat/cronlogs/sitemonitor.log
0
 
LVL 1

Author Closing Comment

by:antonumia
ID: 31468876
Thanks, it's what I thought but no harm in verifying.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now