En Nadia HAIDOURI va escriure el dia 10 Dec 98, a les 14:25:
> Salut every body
>
> 1- Environement :
> Informix Online-7, with OS : UnixSCO version 5.2
>
> 2- Needs
> I want to have the command to archive DATA automatiquly, so , I use the
> command crontab of unix the ksh script is 17 8 * * 1,2,3,4,5 nohup
> /v/informix/bin/ontape -s <oninput.txt> onoutput.txt The file oninput.txt
> contains 2 lines : 0 and line for enter
>
> 3- So, when i execute this commad with crontab, i have the mesage of cron
> Status : R initgls error -23101
>
>
> I hope, you have a key of my problem, "Problem of Security of data"
> Sincerly
>
To do the same i'm using the next script:
in the crontab:
17 8 * * 1,2,3,4,5 /home/informix/backup.sh
in backup.sh:
#!/bin/ksh
INFORMIXDIR=<yous_informix_home_path> export INFORMIXDIR
INFORMIXSERVER=<your_informixserver>
PATH=${PATH}:$INFOMIXDIR/bin export PATH
DB_LOCALE=<your_gls_environment> # ex. I'm in Spain and use es_es.8859-1
export DB_LOCALE
CLIENT_LOCALE=<your_gls_environment> export CLIENT_LOCALE
echo "\\n" | ontape -s -L 0
---------------------------------------
Isidre PONS ROCA
BASE - Gesti' d'Ingressos Locals
(Diputacio de Tarragona)
Servei de Sistemes de Informacio
Av President Lluis Companys 12-C
43005 - Tarragona
SPAIN
Tel # +34 977 236731
Fax # +34 977 227302
http://www.altanet.org
ipons@dtgna.altanet.org
---------------------------------------