![]() |
|
|
|
|
|||||||
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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 | ||
|
|
|
||||
|
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). |
|
|||
|
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 |
|
|||
|
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 |
|
||||
|
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 |