DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: what si the meaning of the script below

  1. #1
    Join Date
    Nov 2001
    Location
    Singapore
    Posts
    182

    what si the meaning of the script below

    Hi,

    Iam New to scheduling cron jobs could any one explain me what is the actual meaning of the below entry in my crontab.


    48 15 * * * ksh /opt/oracle/DBA/rman/shells/rman.sh DBATEST COLD tape 0 dbatest
    -r > /opt/oracle/DBA/rman/log/rman_cold_backup.DBATEST.log 2>/opt/oracle/DBA/rma
    n/log/rman_cold_backup.DBATEST.err
    J Gangadhar

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    everyday at 15:48 run that script.

    now you can do man crontab and work out what the format of it is

  3. #3
    Join Date
    Nov 2001
    Location
    Singapore
    Posts
    182
    Hi ,

    yes you are correct , it executes at hr 15 min 48 but i want to know
    what are the other parameters which are specified after shell script


    48 15 * * * ksh /opt/oracle/DBA/rman/shells/rman.sh DBATEST COLD tape 0 dbatest
    -r > /opt/oracle/DBA/rman/log/rman_cold_backup.DBATEST.log 2>/opt/oracle/DBA/rma
    n/log/rman_cold_backup.DBATEST.err
    J Gangadhar

  4. #4
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    Originally posted by ganga
    but i want to know
    what are the other parameters which are specified after shell script
    You do not need any parameters to be passwed in crontab if you hardcode parameters in rman.sh, meaning that parms depends on the script and how it was written. So, Open your script and see what are input parameters you will know the parms that needs to be given in crontab for the script.
    Reddy,Sam

  5. #5
    Join Date
    Apr 2001
    Location
    Louisville KY
    Posts
    295
    > xxxx put the standard output of the script to file xxxx
    2> yyyy put the error output of the script to the file yyyy

    Oldstyle (from the birth of Unix) redirection to bypass the terminal.
    Joseph R.P. Maloney, CSP,CDP,CCP
    'The answer is 42'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width