![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| at vs cronjob | mokkan | SUN Solaris | 1 | 05-16-2008 11:50 PM |
| cronjob | wiz83 | UNIX for Dummies Questions & Answers | 1 | 01-25-2008 02:47 AM |
| sftp not working as cronjob | tungaw2004 | UNIX for Dummies Questions & Answers | 3 | 01-10-2008 08:27 PM |
| cannot run cronjob | shahrahulb | UNIX for Advanced & Expert Users | 3 | 10-28-2004 09:45 AM |
| Cronjob | gerwhelan | Shell Programming and Scripting | 4 | 12-14-2001 06:17 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
cronjob not working
I created a file in /u01/oradata directory as cronjb.ksh which contains following script
30 12 * * * /export/home/oracle/u01/oradata/rman.ksh '/export/home/oracle' is my root directory. I then moved cronjb.ksh file to my '/export/home/oracle' directory. i typed crontab cronjb.ksh. However my cronjob named cronjb.ksh does not run. I typed mail and i dont see any email. Below is my rman.ksh script. is there any command to findout why my cronjob not working? [B]exec>/u01/oradata/bkup_$$.log 2>&1 ORACLE_HOME=/u01/app/oracle/product/10.2; export ORACLE_HOME ORACLE_SID=SEED; export ORACLE_SID PATH="$PATH:$ORACLE_HOME/bin" rman target=/<< EOF run{ SHUTDOWN IMMEDIATE STARTUP MOUNT ALLOCATE CHANNEL ch1 device type disk FORMAT '/u01//oradata/ora/%U'; BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG; SQL 'ALTER DATABASE OPEN';} EXIT ; EOF[/B |
|
||||
|
It shows below
$ crontab-l #!/bin/sh 15 12 * * * /export/home/oracle/u01/oradata/rman.ksh |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|