Re: Script to cron for tbtape
Posted in 1995
>Luis Alejandro Mendoza Torres <71430.1261@CompuServe.COM> wrote: >i need make cron to doing backup database on informix online 5.0 >with tbtape -s at level two on o.s. solaris 2.0/sun sparc 20. > >but tbtape need a return key and level parameter. > >does anybody have a script to help me? > >thanks. > >luis alejandro mendoza torres. >71430,1261@compuserve.com >mexico,d.f. >credimar,s.a. de c.v. You could try putting the following in a file which you execute from cron, note you will need to ensure that you set informix environment variables as required for it to work. --------------------------------------------- cut here --------------------------------------------------------------- /informix/bin/tbtape -s -L 2 <<! >output_file & ! --------------------------------------------- cut here ---------------------------------------------------------------- You will need to make the shell script executable in order to run int. Mark Denham BBC London, UK Mark.Denham@bbc.co.uk