Solved

php cron with nice

Posted on 2008-06-19
2
557 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
Comment Utility
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
Comment Utility
Thanks, it's what I thought but no harm in verifying.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

772 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

10 Experts available now in Live!

Get 1:1 Help Now