tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* "ksh: /log/exp_paie_comp.log: bad file unit number" from cron
@ 1998-09-21 11:33 Jacques Demeulemeester
  0 siblings, 0 replies; only message in thread
From: Jacques Demeulemeester @ 1998-09-21 11:33 UTC (permalink / raw)
  To: tru64-unix-managers

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=20
'/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 =3D $PIPE full=3DY compress=3DY grants=3DY =
consistent =3D=20
Y \
                log =3D $LOG
# 4. suppression du pipe
rm $PIPE
# Fin


I've checked permissions on /log (777). User default shell for user =
siga115=20
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=20
cronfile, ie (su siga115 -c ...), all is OK. So what is the meaning of =
this=20
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=E9 Charles de Gaulle Lille 3=09
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@univ-lille3.fr
__________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-09-21 11:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-21 11:33 "ksh: /log/exp_paie_comp.log: bad file unit number" from cron Jacques Demeulemeester

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox