aix cron job


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers aix cron job
# 1  
Old 01-29-2002
Error 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!!!
# 2  
Old 01-29-2002
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  
Old 01-29-2002
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.
# 4  
Old 01-30-2002
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!!!!!!!!!
# 5  
Old 01-30-2002
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  
Old 02-01-2002
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  
Old 02-01-2002
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 01:26 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX cron job is running everyday instead of on a particular day

Hello, I was trying to run a script on a dev server using cron job. It supposed to run 3rd sunday of every month. 45 4 15-21 * 0 /home/user1/myscript.sh >/dev/null 2>&1 # run this script 3rd sunday of every month When I Schedule it on AIX server, It is running every day at 4:45 AM. am I... (3 Replies)
Discussion started by: Kumar7997
3 Replies

2. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

3. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

4. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

5. Shell Programming and Scripting

Cron job is not working in the desired manner on IBM AIX

Hi, I have created a cron job on IBM AIX but it is not working in desired manner ! Here are the steps which I have followed :- #!/bin/ksh #------------------------------------------------------------------ find /some/file/at/the/user/side/test.log -exec cp {}... (8 Replies)
Discussion started by: acidburn_007
8 Replies

6. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

7. UNIX for Dummies Questions & Answers

CRON usage for CRON job

can anybody explain the usage of CRON for adding a cron job. please provide an example also for better understanding !!! Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

8. AIX

AIX and cron logs filtering ?: /etc/cronlog.conf, /var/adm/cron/log

Hi, I can use 'crontabs –e' and do all the scheduling I like. However I would like to auto send myself just the cronjobs logs that fail. That is to say the PIDs that fail and the related lines with those PID’s only. (Not the full set of logs) Has anyone done this work? Or does an AIX 5.3 tool... (0 Replies)
Discussion started by: Keith Johnson
0 Replies

9. Shell Programming and Scripting

Something about a cron job

Hi, I am kind of new to Unix world and my job requires me to collect the information about the system calls a process is making. I need to write a script which gets into action every nite at 10:00 pm and runs tills 10:10 pm and does the following things: 1. Get the process id for a running... (3 Replies)
Discussion started by: Tyche
3 Replies

10. UNIX for Dummies Questions & Answers

Cron Job

Hi everybody ....I am trying to write a cron job for event based subscription for a tool called Microstrategy...if anybody have idea about this please help me... Thanks in advance ark (7 Replies)
Discussion started by: arksal
7 Replies
Login or Register to Ask a Question