The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
crontab couldn't run through, help duke0001 UNIX for Advanced & Expert Users 10 02-06-2008 03:22 AM
help with crontab bob122480 Shell Programming and Scripting 3 01-22-2007 08:49 PM
Crontab gen4ik UNIX for Dummies Questions & Answers 1 01-18-2007 07:26 AM
pls help on crontab ss4u UNIX for Dummies Questions & Answers 2 01-09-2007 02:56 AM
setting thread priorities bankpro High Level Programming 1 01-17-2006 11:39 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-28-2008
TechFly TechFly is offline
Registered User
  
 

Join Date: Jul 2008
Location: Minnesota
Posts: 4
crontab priorities

I have a user that wants to run a backup of an oracle database via a file copy. They shut down the database once a week, and do a full copy. She wrote a script to do this for her, and it works, but when she runs it from cron, it takes twice as long. I took a look, and found a way to get it to run as though she is at the console, but it does not seem to work. I have an excerpt from the script. She said that she has used the set +o bgnice to make it not use a lower priority, but it still takes twice as long when she does it via cron rather than interactively at the console. Does anyone know how to change the priority of the cron job? We don't really want it to run under the root cron (I think that is why the bgnice does not work) because she then has no way to change the schedule if she needs to. She is running this with a user privilege account rather than an elevated account. What is the best way to deal with this? Is there perhaps a group that would allow this sort of thing? Thanks for the help.

#set +o bgnice

echo "Starting u01 Copy..."
#sh +o bgnice copy_dir.sh u01 $backupname &
sh copy_dir.sh u01 $backupname &

echo "Starting u02 Copy..."
#sh +o bgnice copy_dir.sh u02 $backupname &
sh copy_dir.sh u02 $backupname &

echo "Starting u03 Copy..."
#sh +o bgnice copy_dir.sh u03 $backupname &
sh copy_dir.sh u03 $backupname &

echo "Starting u04 Copy..."
#sh +o bgnice copy_dir.sh u04 $backupname &
sh copy_dir.sh u04 $backupname &

echo "Starting u05 Copy..."
#sh +o bgnice copy_dir.sh u05 $backupname &
sh copy_dir.sh u05 $backupname &
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0