The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cron job starts new cron proccess ron76 SUN Solaris 3 05-11-2008 10:07 PM
Cron and Pseudo-Cron dingusmcghee UNIX for Dummies Questions & Answers 1 01-31-2008 08:58 AM
CRON usage for CRON job skyineyes UNIX for Dummies Questions & Answers 1 01-17-2008 06:17 AM
AIX and cron logs filtering ?: /etc/cronlog.conf, /var/adm/cron/log Keith Johnson AIX 0 01-09-2008 04:32 PM
Cron : you are not authorized to use cron. Sorry. tt155 UNIX for Advanced & Expert Users 1 07-06-2005 07:37 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-29-2002
Registered User
 

Join Date: Nov 2001
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Exclamation aix cron job

I have problem with AIX v4.3.3 to run the cron job:

Please advise me on the above :

1 -) I need to run a backup for full system at 23:59, :

crontab -e
59 23 * * * /usr/bin/mksysb -i /dev/rmt0 > /dev/null 2>&1


2 -) I need to run a spesific command at 23:59:

crontab -e
59 23 * * * /usr/lpp/fw logswitch

but failed, anything I have done wrong.


Please HELP ME!!!
__________________
zahari
Forum Sponsor
  #2 (permalink)  
Old 01-29-2002
rwb1959's Avatar
Registered User
 

Join Date: Aug 2001
Location: Virginia, USA
Posts: 438
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Do you get any specific error messages?

For instance, I run a backup job like...

35 3 * * * /aixback.sh > /tmp/aixback.log 2>&1;
egrep -v "a " /tmp/aixback.log | mail
myself@mymailhost.com

This will send me an email with the results
I'm interested in from the log. Note I run
a shell script to encapsulate the backup
command since I want to do several other things
as well (gives me better control).
  #3 (permalink)  
Old 01-29-2002
Registered User
 

Join Date: Nov 2001
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Thank you for your reply.

No I dont get any error message for the backup.

Is it possible you can share your aixback.sh, so that I can see what I have done wrong.

I also try to run a command as :

59 23 * * * /usr/lpp/CPfw1-41/log/fwtestlog.sh

But error : Execute permission denied.

One more thing, how do you configure the sendmail so that it can mail to my mailhost.
__________________
zahari
  #4 (permalink)  
Old 01-29-2002
Registered User
 

Join Date: Nov 2001
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Question AIX cronjob

Hi,

Anybody , please help me on how to use crontab for AIX.

I've done some, but fail.

I put in this :
crontab -l
59 23 * * * backup -o -f /dev/rmt0
>>> this error come out : backup :0511-225 cannot open /dev/rmt0. The input or output media is write-protected. backup:The backup command has ended abnormally.

The 2nd :
crontab -l
59 23 * * * /usr/lpp/CPfw1-41/log/fwtestlog.sh
>>>this error come out: Execute permission denied.


Is there any possibility that I can e-mail all the result for the cron job I have put in to the administrator so that I will know the result of the activity.One more thing, how to configure my sendmail so it can mail to the mail server.


Please HELP ME!!!!!!!!!
__________________
zahari
  #5 (permalink)  
Old 01-30-2002
rwb1959's Avatar
Registered User
 

Join Date: Aug 2001
Location: Virginia, USA
Posts: 438
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
I'd be happy to email you a copy however
your profile says you have elected not to
receive emails directly. It's a bit too long
to post. Note, that I am not doing a mksysb, I'm
just doing a backup of a file system to tape
using the "backup" command and "tctl" to
manipulate the tape device (plus a few other
things). You can send me mail directly via my
profile and I can send you the script via reply
directly to you.

Regarding your "execute permission" error,
try...

chmod 755 /usr/lpp/CPfw1-41/log/fwtestlog.sh

...I'm assuming you own this file. I'm also
assuming the error is not being generated
from inside the script. It may be that the
script is trying to execute a command for which
you do not have permission but from the error
you mention, I'm assuming it's just the
fwtestlog.sh script itself that is not executable.

On "sendmail", there was nothing to configure.
We have an internal DNS that specifies our
mail server (via MX record entry) so when
I "mail me@mydomain.com", the mail is routed
correctly. Can you send mail from the command
line
  #6 (permalink)  
Old 02-01-2002
cns cns is offline
Registered User
 

Join Date: Dec 2001
Location: Maastricht (The Netherlands)
Posts: 15
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
In the first case it looks like your backuptape is write-protected.

Second case check your authorisation for /usr/lpp/CPfw1-41/log/fwtestlog.sh
  #7 (permalink)  
Old 02-01-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
You already asked this question, and someone was attempting to help you.
Please don't scatter the same question around the forum:
::merged threads::

Last edited by oombera; 02-20-2004 at 09:26 AM.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101