- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- renice via cron
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2002 12:12 PM
12-26-2002 12:12 PM
renice via cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2002 04:27 PM
12-26-2002 04:27 PM
Re: renice via cron
sudo renice +1
Cheers
Szilva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2002 05:08 PM
12-26-2002 05:08 PM
Re: renice via cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2002 01:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 09:02 AM
12-30-2002 09:02 AM
Re: renice via cron
(this was using HPUX 11i.) You might have change the cut fields for other unixes.
good luck
Rory
for arg in `ps -fel |grep -e xmgen -e cscomm |grep -v grep|cut -c 15-21`
do
renice -n +20 ${arg}
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 09:26 AM
12-30-2002 09:26 AM
Re: renice via cron
I've tried running the cron job under root. But still the priority did not increase. Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 10:45 PM
12-30-2002 10:45 PM
Re: renice via cron
Does the priority Increases when you run the command as root in the shell prompt manually ?
Try this in that Cron script
/usr/bin/snice -20
eg:
/usr/sbin/snice -20 httpd
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 10:54 PM
12-30-2002 10:54 PM
Re: renice via cron
Are you running that process as what ? root or that user ?.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2002 06:38 AM
12-31-2002 06:38 AM
Re: renice via cron
Yes when I ran it manually it works. Yes, I am running the cron job as root. Yes, I've included the full path of the command as /usr/bin/renice -19
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2002 08:16 AM
12-31-2002 08:16 AM
Re: renice via cron
I've figured it out; There was no problem running renicing priority as root via cron. It was ths script, it was checking against an environmental varialbe USER to see if root is running the script. Unfortunately this was not set in cron, this is solved when I set the USER variable in cron. Thanks all for your help.