Crontab schedule

hi all,
*1. i need to schedule cronjob in my linux-rhel5*(Red Hat Enterprise Linux Server release 5.4 )*.*
* 2.whenever i schedule i got an error on */var/spool/mail/oracle*
Message 206 not found; No message file for product=RDBMS, facility=EXP: Release 10.2.0.1.0 - Production on Wed Nov 23 12:37:01 2011
Copyright (c) 1982, 2005, Orac
Invalid format of Export utility name
Verify that ORACLE_HOME is properly set
Export terminated unsuccessfully
EXP-00000: Message 0 not found; No message file for product=RDBMS, facility=EXPmv: cannot stat `/oracle/exportbackup/new.dmp': No such file or directory
mv: cannot stat `/oracle/exportbackup/new.log': No such file or directory
3. the script that executed in crontab
LOC=/oracle/exportbackup
*/oracle/product/10.2.0/bin/exp \"sys as sysdba\" file=/oracle/exportbackup/new.dmp log=/oracle/exportbackup/new.log tables=sla.alloc statistics=none*
mv $LOC/new.dmp $LOC/"exportbackup-`date +%d-%b-%H-%M`.dmp"
mv $LOC/new.log $LOC/"exportbackup-`date +%d-%b-%H-%M`.log"
------------------------------------------------------------------------------------------

Sometimes you may not want to use your .bash_profile because it may prompt you or you need a more dynamic solution. There could also be an error introduced in .bash_profile later, which will break things. I think the following is a more robust solution to set your Oracle environment variables in a cron or other scripts:
ORACLE_SID=prod
ORAENV_ASK=NO
. oraenv -sEdited by: Dude on Nov 23, 2011 4:16 AM

Similar Messages

  • Crontab schedule job

    New to crontab, how i can put these enteries to other servers to schedule these jobs to run....what would be safe method to include these .ksh scripts to crontab entry without messing any thing already scheduled?
    i got this from crontab -l
    #===========================================================
    #00 09 5 7 * /qu01/app/oracle/dba/healthcheck/gsd331/healthcheck.ksh cenhpsp
    #05 09 5 7 * /qu01/app/oracle/dba/healthcheck/gsd331/healthcheck.ksh cenlawr
    #10 09 5 7 * /qu01/app/oracle/dba/healthcheck/gsd331/healthcheck.ksh cenlawq
    #===========================================================
    # Run Healthcheck 4 times a year on the 2nd
    0 2 2 1,4,7,10 * /qu01/app/oracle/dba/healthcheck/orashc -a

    what would be safe method to include these .ksh scripts to
    crontab entry without messing any thing already
    scheduled?Hi,
    First thing to notice is that, since lines beginning with a '#' are comments, you only have one entry in your cron:
    0 2 2 1,4,7,10 * /qu01/app/oracle/dba/healthcheck/orashc -a
    As per the previous reply, you can edit your cron with the crontab -e command. One word of caution, crontab -r removes your crontab file (without asking for confirmation) and 'r' is next to 'e' (for edit) so be careful when you type the command.
    If you aren't confident editing your crontab there are ways to append entries to it without editing. For example:
    Here's my crontab
    [ora10g@oel51 ~]$ crontab -l
    00,15,30,45 * * * * /home/ora10g/clear_cores.sh > /tmp/clear_cores.log 2>&1
    I can write the output of crontab -l to a file
    [ora10g@oel51 ~]$ crontab -l > /tmp/cron.txt
    [ora10g@oel51 ~]$ cat /tmp/cron.txt
    00,15,30,45 * * * * /home/ora10g/clear_cores.sh > /tmp/clear_cores.log 2>&1
    Now I append the new entry to the end of that file
    (***You need to use '>>' to append****)
    [ora10g@oel51 ~]$ echo "0 2 2 1,4,7,10 * /qu01/app/oracle/dba/healthcheck/orashc -a" >> /tmp/cron.txt
    [ora10g@oel51 ~]$ cat /tmp/cron.txt
    00,15,30,45 * * * * /home/ora10g/clear_cores.sh > /tmp/clear_cores.log 2>&1
    0 2 2 1,4,7,10 * /qu01/app/oracle/dba/healthcheck/orashc -a
    Then I write the file back over the top of my crontab
    [ora10g@oel51 ~]$ crontab < /tmp/cron.txt
    And my crontab has been updated
    [ora10g@oel51 ~]$ crontab -l
    00,15,30,45 * * * * /home/ora10g/clear_cores.sh > /tmp/clear_cores.log 2>&1
    0 2 2 1,4,7,10 * /qu01/app/oracle/dba/healthcheck/orashc -aThere are more steps here than just editing the cron but if you need to update multiple servers these steps can be scripted fairly easily.
    Regards,
    Joseph

  • Crontab schedule linux redhat#2

    dear gurus
    can you guide below, i want to run below job at 5.30pm what change i have to do below
    # This schedule run at late night 2.00am daily
    02 12 * * * /home/test/backup.sh
    regards
    salim

    dear gurus,
    i am encountering some issue this regard
    1) where can i see the logs of crontab, because the job has run but partially run and it did not take full backup. see my schedule below
    [oracle@d7 script]$ crontab -l
    # this schedule run everyday 5.30pm
    30 17 * * * /oracle/backup/script/export.sh
    2) when i run script directly as oracle user , this work fine and take export dump, create touch files and then finally tar.gz also
    oracle@d7>./export.sh
    3)how can i monitor if crontab jobs running currently like in windows we watch schedule running etc, do we need to see ps -ae | grep crontab
    4) the script file has permission below
    [oracle@d7 script]$ ls -la export.sh
    -rwxr-xr-x 1 oracle oinstall 2030 Sep 15 14:05 export.sh
    5) the script file has
    # *** TMSA SWITCHOVER START ***
    touch /oracle/backup/dump_test/tmsa_start.txt
    exp TEST_CO/TEST_CO@TEST file=/oracle/backup/dump_test/TEST_CO.dmp log=/oracle/backup/dump_test/TEST_CO.log
    exp FIN_CO/FIN_CO@TEST file=/oracle/backup/dump_test/fin_CO.dmp log=/oracle/backup/dump_test/fin_CO.log
    touch /oracle/backup/dump_test/tmsa_end.txt
    tar cvzf /oracle/backup/dump_test.tar.gz /oracle/backup/dump_test
    # *** TMSA SWITCHOVER END ***
    ADVISE FURTHER please
    regards
    salim

  • Crontab schedule linux redhat

    dear gurus
    can you guide below, i want to run below job at 5.30pm what change i have to do below
    # This schedule run at late night 2.00am daily
    02 12 * * * /home/test/backup.sh
    regards
    salim

    dear gurus,
    i am encountering some issue this regard
    1) where can i see the logs of crontab, because the job has run but partially run and it did not take full backup. see my schedule below
    [oracle@d7 script]$ crontab -l
    # this schedule run everyday 5.30pm
    30 17 * * * /oracle/backup/script/export.sh
    2) when i run script directly as oracle user , this work fine and take export dump, create touch files and then finally tar.gz also
    oracle@d7>./export.sh
    3)how can i monitor if crontab jobs running currently like in windows we watch schedule running etc, do we need to see ps -ae | grep crontab
    4) the script file has permission below
    [oracle@d7 script]$ ls -la export.sh
    -rwxr-xr-x 1 oracle oinstall 2030 Sep 15 14:05 export.sh
    5) the script file has
    # *** TMSA SWITCHOVER START ***
    touch /oracle/backup/dump_test/tmsa_start.txt
    exp TEST_CO/TEST_CO@TEST file=/oracle/backup/dump_test/TEST_CO.dmp log=/oracle/backup/dump_test/TEST_CO.log
    exp FIN_CO/FIN_CO@TEST file=/oracle/backup/dump_test/fin_CO.dmp log=/oracle/backup/dump_test/fin_CO.log
    touch /oracle/backup/dump_test/tmsa_end.txt
    tar cvzf /oracle/backup/dump_test.tar.gz /oracle/backup/dump_test
    # *** TMSA SWITCHOVER END ***
    ADVISE FURTHER please
    regards
    salim

  • IPhoto 2.0.1 hangs shortly after launch

    I have been using iPhoto 2.0.1 for some time on MacOS X 10.2.8 with no
    problems. Recently, the program launches and the main window appears but
    within a few seconds of launch, the program freezes with the spinning
    beachball. It takes two passes at "force quit" to kill it (iPhoto will
    be shown in red in the app list).
    I have tried the following to resolve, all to no avail:
    iPhoto with no iPhoto Library
    removing personal library/preferences/comp.apple.iphoto.plist
    iPhoto from another user account including root
    repairing directory permissions
    removing /library/receipts/iphoto.pkg
    /library/receipts/iphotoupdate201.pkg
    /applications/iphoto
    then doing install of iPhoto 2.0.0 and iPhoto 2.0.1 updater
    None of these solved the problem. There have been no changes to this
    system (no new software, updates, etc.). All other apps are behaving
    normally.
    System has ~ 1G of RAM and ~ 2G of free space.
    Any ideas ?
    TIA.
    Art

    OT,
    Thanks for the reply. However, the problem I was exhibiting seems to have cured itself on the startup the next day. Perhaps one of the maintenance tasks run at startup cleared up whatever it was that was causing iPhoto to hang.
    I do not keep my system running all night when many of these functions (daily/weekly/monthly) are scheduled to run. From examining the cron log time stamps, it would appear that cron only executes crontab scheduled operations if the computer is actually running at the scheduled time(s). My recollection from System V Unix days was that cron had a "catchup" capability and would recognize that had not run a scehduled task and would execute it at the next boot time or whenever cron was restarted. Apparently the BSD cron doesn't function that way.
    I D/L'd OnyX 1.3.1 (the last version for 10.2.8) and will do what you suggest. Seems like a good thing to do periodically anyway.
    Regards,
    Art

  • Steps to clone database in other server with restore daily

    Hi,
    I think i know what is the steps but need a guru that give me the ok.
    I have been asked to perform a clone database (11.2.0.3 with ASM) in another server. The original database (call PROD) has full backup everyday that it automatically (with crontab and a script i guess) restore the second database. The problem i see its that the original database is a RAC (2 nodes) but the second database is standalone (call TEST)
    I think the steps are:
    1) create a standalone database in second server with same number of diskgroups and same directories
    2) copy full backup to TEST server.
    3) duplicate with rman:
    connect auxiliary sys/password@TEST
    connect target /
    startup auxiliary nomount;
    run {
    allocate auxiliary channel ch1 type disk;
    duplicate target database to 'TEST' nofilenamecheck;
    release channel ch1;
    4) copy PFILE from PROD and modify (like standalone database) at TEST
    5) startup nomount; --test database
    6) restore controlfile from '< backup piece name of controlfile auto backup copied in step 2>'; --at test database
    7) alter database mount; --test database
    8) recover, restore from full backup and open database-->
    run {
    allocate channel d1 device type disk format ' <path of the copied backup in step 2 >';
    set until sequence < sequence> thread < thread# >;
    restore database;
    recover database;
    SQL> alter database open resetlogs;
    9) like its a backup that has 2 undo tablespaces, should i drop 1?:
    SQL> drop tablespace UNDOTBS2 including contents and datafiles;
    All this steps at first time, are they right?, to do it automatically in the script i should use 2) 5) 6) 7) 8)?
    -- like the databases names are different, should i have any problem when restore de controlfile? if yes, how to avoid it?
    Thanks in advance and sorry for the inconveniences
    Edited by: Me_101 on 30-jul-2012 5:46

    Me_101 wrote:
    Hi,
    I think i know what is the steps but need a guru that give me the ok.
    I have been asked to perform a clone database (11.2.0.3 with ASM) in another server. The original database (call PROD) has full backup everyday that it automatically (with crontab and a script i guess)Why guess? Can't you look at the crontab schedule and see for yourself?
    restore the second database. The problem i see its that the original database is a RAC (2 nodes) but the second database is standalone (call TEST)
    That should not be an issue. Even with RAC there is still only a single database to duplicate.
    I think the steps are:
    1) create a standalone database in second server with same number of diskgroups and same directories
    2) copy full backup to TEST server.
    3) duplicate with rman:
    connect auxiliary sys/password@TEST
    connect target /
    startup auxiliary nomount;
    run {
    allocate auxiliary channel ch1 type disk;
    duplicate target database to 'TEST' nofilenamecheck;
    release channel ch1;
    4) copy PFILE from PROD and modify (like standalone database) at TEST
    5) startup nomount; --test database
    6) restore controlfile from '< backup piece name of controlfile auto backup copied in step 2>'; --at test database
    7) alter database mount; --test database
    8) recover, restore from full backup and open database-->
    run {
    allocate channel d1 device type disk format ' <path of the copied backup in step 2 >';
    set until sequence < sequence> thread < thread# >;
    restore database;
    recover database;
    SQL> alter database open resetlogs;
    9) like its a backup that has 2 undo tablespaces, should i drop 1?:
    SQL> drop tablespace UNDOTBS2 including contents and datafiles;
    All this steps at first time, are they right?, to do it automatically in the script i should use 2) 5) 6) 7) 8)?
    -- like the databases names are different, should i have any problem when restore de controlfile? if yes, how to avoid it?
    Thanks in advance and sorry for the inconveniences
    Edited by: Me_101 on 30-jul-2012 5:46Take a look at the DUPLICATE DATABASE command in rman. Key is to connect to the production db as target, duplicate databse as auxiliary
    connect catalog rman/cat@rmcat
    connect target sys/pswd@proddb
    connect auxiliary /
    run {                        
    duplicate target database to NEWDBSID;
    }                                        where NEWDBSID is the name of the new database
    Put together what you think is the correct procedure and give it a shot. If you have specific problems, bring them to the forum.

  • Mount point getting decreased frequently

    Hi,
    The mount point database in oracle E-Buiseness suite get reduced two days once.
    I cross checked with trace file, it generated normally & also i stored the archive log files in separate mount point.
    Kindly any one guide me for that issue.
    Thanks & Regards
    Kesav

    Kesavan G wrote:
    Hi,
    The mount point database in oracle E-Buiseness suite get reduced two days once.
    I cross checked with trace file, it generated normally & also i stored the archive log files in separate mount point.
    Kindly any one guide me for that issue.
    Thanks & Regards
    KesavHi,
    What is the operating system, EBS version.
    Do you have any scheduled scripts in crontab/scheduled tasks to delete trace and old files?
    Do you store only database related files or application related files. If you store application related files in the same mount point check if you have scheduled "Purge concurrent request and/or manager data" program.
    Any RMAN backups in this mount point?
    Thanks

  • ORA-27086: skgfglk: unable to lock file - already in use

    Hi,
    I advance I appreciate your time for assistance.
    Thu Sep 30 23:07:08 2010
    Errors in file /opt/app/oracle/admin/EDITDATA/bdump/editdata_dbw0_21124.trc:
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: '/opt/app/oracle/oradata/EDITDATA/users01.dbf'
    ORA-27086: skgfglk: unable to lock file - already in use
    Linux Error: 11: Resource temporarily unavailable
    I am getting this error for last 2-3 days. I need to start up the database manually.
    Daily there is crontab schedule which will take the cold backup and startup the database. When I am checking daily morning. DBt is going into MOUNT stage instead of OPEN stage. I have check the script every thing is fine.
    Note: This is happening intermetendly. Also is error is happening with different datafiles each time.
    Regards

    user818118 wrote:
    This is the cold_backup Script ...
    1) First, it will shutdown the db.
    2) Copy all the crb files to the backup location.CRB files? Do you mean data files, control files and spfile/pfile?
    3) Startup the db.
    4) ZIp the files.
    5) Deletes the old uncompress files.Any special reason why you use this approach? It may in fact be slower than zipping and compressing on the fly.
    For example, 10GB of data files need to be be backed up. You can follow the above approach and make a 10GB copy. Then read that copied 10GB (20GB in total read at this stage) and then compress it (CPU resources needed) and then write 5GB of compressed data (assuming a 50% compression ratio was achieved).
    Now compare this with reading 10GB, compressing it (CPU resources needed) and then writing 5GB. Not only is this significantly less I/O to do, but less physical space is needed too.
    As for your problem - you can add some debugging code into the cold backup script to show whether any processes are using any of the Oracle datafiles prior to starting the Oracle instance. If so, then doing a process listing of the "guilty" process to determine who it is.
    Also keep in mind that you also need clean starts and exits from shell scripts... in other words, what happens if a 2nd copy of the cold backup is started? Or when a previous run failed and is stuck as a background process?
    In my experience, this is often the cause of the problem you're seeing - the database is started up, but the cold backup has a rogue process (remnant of some script failure) that still locks Oracle datafiles.

  • Poweron issue

    Hello all,
    i have this poblem:
    my scheduled poweron doesn't work.
    i've yet trashed com.apple.autowake.plist and com.apple.powermanagement.plist
    i have also edit crontab, scheduling pmset wakeorpoweron command, but my mac won't startup.
    i think launchd has any problems.
    any ideas?
    thanks in advance.

    no ideas?

  • LINUX MEDIA HARDWARE FAILURE

    dear gurus
    we do lost media san drive failure on oracle machine attached. disaster occured, where we loss 2 days data, where 1 day it has taken backup and other day it did not.
    our crontab schedule job used to run everyday. can someone help which file to check the crontab schedule job when it try to run what has happend what was errors, sucessfull or not failure
    etc
    regards

    MR. EX DBA
    DONT SEND YOUR COMMENTS, IF YOU CAN ANSWER FINE, IF NOT BETTER YOU KEEP SILENCE.
    IF EVERYTHING AVAILABLE ON ORACLE DOCUMENTATION, SO WHAT ARE YOU DOING ON THIS FORUMS, AND WHY ORACLE HAS OPEN THIS FORUMS.
    SOMETIME EVEN AFTER READING DOCUMENTATION CLARIFICATION NEEDED.
    SO IF I POST A QUESTIONS AND ASK TO MY GURUS FROM THEM I LEARN EVERYDAY. IS IT MY BED PRACTISE?
    AVOID SUCH POSTS IN NEAR FUTURE IF YOU CANT ANSWER LEANR FIRST TO ANSWER PROPERLY
    REGARDS

  • EBS 11i and R12 AppsDBA

    Hi Friends,
    As Apps DBA in your company, can you share me how do u managed your EBS 11i/R12
    Production systems please. What are the basic daily activity that I should be doing so that I will not encounter problems with the system and make the system run smoothly day by day.
    Thanks a lot

    Hi Again :)
    I found some AppsDBA Responsibilities in Google, Is this a good one? Or lacking of somethings.
    Thanks
    =====================
    Oracle Applications Administration
    Scope of Work
    Check Existing Components and Architecture of Oracle Applications
    Check/Validate Existing Backup Procedure
    Servicing User Requests-Oracle Applications Components
    * Client
    * Web Node
    * Forms Node
    * Concurrent Processing Node
    * Admin Node
    * Database Node
    * Oracle Applications Architecture
    Check Existing Oracle Applications Configuration
    * Application Context File
    * Port Numbering Convention
    * Identifying Nodes with Context Parameters
    * AD Configuration
    * Reviewing adconfig.sh Log Files
    * Reviewing adconfig.sh Execution Changes
    * Check adconfig.sh Backup Files
    * Web Node Configuration
    * Apache Configuration Files
    * JServ Configuration Files
    * Forms Node Configuration
    * Forms Metric Server and Forms Metric Client
    * Concurrent Processing Node Configuration
    * Report Review Agent (FNDFS)
    * Admin Node Configuration
    * Application Environment Files
    * Identity.obj File
    * Database Connection File
    * Generic Service Monitorment
    * TCF Socket
    * Discoverer Server
    * Fulfillment Server
    Check Existing Database Node Configuration
    * Reviewing Database Initialization Parameters
    * Database Network Configuration
    * Review Oracle Applications Tablespace Model
    * Custom Database Objects
    * License Monitorr
    * Password Security
    MONTHLY ACTIVITY
    Oracle Applications Monitoring
    * Monitor Database Log Files
    * Monitor Database Availability
    * Monitor Sessions
    * MonitorStorage
    * MonApache Server Monitoring
    * Apache Log Files
    * Apache Availability
    * Troubleshooting iAS Configuration
    * Testing Java Servlet Configuration
    * Monitoring the JVM Pool
    * Forms Monitoring and Troubleshooting
    * Using OAM
    * Monitoring Forms Dump Files
    * Concurrent Monitorr Monitoring
    * Monitoring Concurrent Monitorr Log Files
    * Reviewing Active Concurrent Requests
    * Monitoring Pending Concurrent Requests
    * Canceling Active Concurrent Requests
    * Monitoring Concurrent Request Run Times
    * Server Availability
    * Server CPU Utilization
    * Server Memory Utilization
    * Server Filesystem Usage
    * Network Monitoring
    * Using ping and tracert for Network Monitoring
    * Performing a Network Test from the Application
    * Additional Monitoring and Troubleshooting Topics
    * Monitoring Profile Changes
    * Monitoring System Backups
    * Resolving JInitiator Issues
    * Identifying Performance Issues
    * Developing an Action Plan
    * Tools for Resolving Performance Issues
    * Tuning the Database
    * Tuning the Server
    * Tuning the Application Tier
    * User Tuning
    * Trace Files
    Perform Applications Patching
    * Check Application Patch Availability
    * Apply Patches
    * Monitoring and Resolving Patching Problems
    * Perform Post-Patching activity
    * Perform Patching Cleanup
    * Perform Database Patching
    Oracle Applications Utilities and Maintenance
    * Application Component Startup and Shutdown Scripts
    * Finding and Removing Memory Segments and Semaphores Error
    * Finding and Removing Print Jobs Error
    * Finding and Removing Runaway Database Sessions
    * Scheduling Scripts
    * Using crontab
    * Scheduling and Monitoring Tools
    * Preventative Maintenance
    * Gathering Statistics
    * Recompiling Invalid Objects
    * Rotating Log Files
    * Rebuilding Indexes
    * Stopping and Restarting the Apache Server
    * Purging Concurrent Requests
    * Purging Workflow History
    * Purging and Archiving Data
    End of File :)

  • IPhoto 2.0.1 Full Screen Pic?

    Is there a way to select any given photo in the library and have it take up the full screen with no menus just picture. The same as the slideshow does so well but just with 1 picture.
    Thanks

    OT,
    Thanks for the reply. However, the problem I was exhibiting seems to have cured itself on the startup the next day. Perhaps one of the maintenance tasks run at startup cleared up whatever it was that was causing iPhoto to hang.
    I do not keep my system running all night when many of these functions (daily/weekly/monthly) are scheduled to run. From examining the cron log time stamps, it would appear that cron only executes crontab scheduled operations if the computer is actually running at the scheduled time(s). My recollection from System V Unix days was that cron had a "catchup" capability and would recognize that had not run a scehduled task and would execute it at the next boot time or whenever cron was restarted. Apparently the BSD cron doesn't function that way.
    I D/L'd OnyX 1.3.1 (the last version for 10.2.8) and will do what you suggest. Seems like a good thing to do periodically anyway.
    Regards,
    Art

  • How to schedule a crontab job for a script?

    Hi,
    Can anyone help me in this?
    Actually, i want to schedule a crontab job for a script.
    the script needs to check for a file in a diectory.
    When ever a particular file in a directory is created, then i need to run that script. (creation time of file and execution time of script must be same)
    So, how can i do this?
    any suggestions?
    Thanks,
    Suman.

    crontab manual http://linux.about.com/od/commands/l/blcmdl5_crontab.htm
    if you need check files on OS, crontab is good way... to do
    Example: checking trace file older 30 days and remove (00.00 -> every days )
    file.sh:
    ........begin file......
    #!/bin/sh
    find PATH/udump -name '*.trc' -type f -mtime +30 -exec rm {} \;
    ........end file......
    $ chmod 750 file.sh
    $ mv file.sh /home/oracle/file.sh
    -- edit crontab
    $ crontab -e
    0 0 * * * /home/oracle/file.sh
    -- list crontab
    $ crontab -l
    0 0 * * * /home/oracle/file.sh
    good luck

  • Scheduling crontab to send an email with an attachement?

    (second post, 1st in wrong forum)
    Hey everyone,
    Does anyone know how to set up a command to send an email with an attachement? From what I've been informed so far, I inputed:
    0 22 * * * (cat mailtext; uuencode filename.txt filename.txt) | mail -s 'here is the backup log' [email protected]
    #The first filename.txt will also have the file path preceding it.
    I done all this and still no email. Do I have to enable smtp or set up the mail server?
    Any help would be much appreciated. Thanks!
    Xserve   Mac OS X (10.4.2)  

    What you're describing doesn't make any use of Automator.
    That being said, using command line "mail" does require that the Unix mail system be set up. This site has a utility for doing that.
    If you want to use Automator (the subject of this forum), you might try this:
    Create a new Automator workflow with these three actions:
    Get Specified Finder Items -- put your desired attachment(s) in the list
    New Mail Message -- fill in all appropriate fields
    Send Outgoing Messages
    Once you confirm that the workflow works, save it as an application. Then you can make it repeat with cron like you specified in your posting, but with the Automator task. E.g., if you saved it to the desktop, and with the name AutoSendDailyReport, edit your crontab:
    <pre>0 22 * * * ~/Desktop/AutoSendDailyReport.app/Contents/MacOS/AutoSendDailyReport</pre>
    Note that in this example, you'll need to be logged in at the time the cron job runs, so that the applications can run. It will automatically launch Mail, if not already running, and send the email.
    Alternatively, you can use iCal to schedule the task: set up a repeating event, with the alarm set to open the workflow app created above. Once again, you'll need to be logged in at the time the mail is to be sent.
    Titanium PowerBook   Mac OS X (10.4.4)  

  • Can we schedule DI jobs in crontab?

    Hi All,
    I have one dought ,Can we schedule DI jobs in Crontab.if 'yes' then how?
    pls give me some suggestion.
    Thanks-Rajeev khokhar

    if your job server is on Unix then you can use Managment Console to schedule you jobs in cron, DS uses cron to schedule jobs
    or you can export the job execution command to a script and schedule that script in cron manually

Maybe you are looking for