Solved

php cron with nice

Posted on 2008-06-19
2
568 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reverse Proxy problem 3 35
How can I stuff the results of this for loop into an array? 3 42
email adress opens in chrome 13 62
Sending JSON Via POST In PHP 7 27
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

738 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