From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078721911968.tru64-unix-managers.marc@archive.invalid> From: Jacques Demeulemeester Date: Mon, 21 Sep 1998 12:35:46 +0000 To: tru64-unix-managers Subject: ksh error text with cron command... X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078721911968 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 =0D 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=20 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 __________________________________________________