Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

php cron with nice

Posted on 2008-06-19
2
Medium Priority
?
577 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 500 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

916 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