Hi,
I'm trying to setup a cron file, which I've already done many times, but
here I'm stuck with this error message (DU 4.0B) :
ksh: /log/exp_paie_comp.log: bad file unit number
the cron command in the user root's cron file is :
00 13 * * 1,2,3,4,5,6 su siga115 -c
'/usr/users/sauvegardes/exports/exp_paie_comp >& log/exp_paie_comp.log'
Here's exp_paie_comp script :
#!/bin/csh
setenv PIPE /export_files/pipe_PAIE
setenv FILE /export_files/exp_paie_comp.dmp.Z
setenv LOG /log/exp_paie.log
setenv ORACLE_SID v115
setenv ORACLE_HOME /disk1/ora716
touch $LOG
# 1. creation du pipe (FIFO)
/sbin/mknod $PIPE p
# 2. compression a la volee sur lecture du pipe
cat $PIPE | compress > $FILE &
# 3. export sur le pipe
$ORACLE_HOME/bin/exp / file = $PIPE full=Y compress=Y grants=Y consistent =
Y \
log = $LOG
# 4. suppression du pipe
rm $PIPE
# Fin
I've checked permissions on /log (777). User default shell for user siga115
is ksh, which I don't know very well (this shell is mandatory for one of
our softwares running with ORACLE). When I run this command out of the
cronfile, ie (su siga115 -c ...), all is OK. So what is the meaning of this
error text ? I'm sure it's around the redirection of the standard output
but...I've looked at man ksh(1), without success... NB : all this stuff is
working fine if use csh as default shell for user siga115...
Regards,
,
JD
___________________________________________________
Jacques DEMEULEMEESTER
Université Charles de Gaulle Lille 3
Centre de Ressources Informatiques - Gestion
Rue du Barreau
BP 149
59653 Villeneuve d'Ascq cedex
Tel. : (33) 03 20 41 64 19
Fax : (33) 03 20 41 66 58 ou (33) 03 20 41 61 00
Mail : demeule_at_univ-lille3.fr
__________________________________________________
Received on Mon Sep 21 1998 - 12:32:48 NZST