From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076335021638.tru64-unix-managers.marc@archive.invalid> From: Guy Dallaire Date: Thu, 25 Jul 1996 14:08:34 +0000 To: tru64-unix-managers Subject: HELP: su - xxx command => Kills me ! X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076335021638 Hi, I get killed (my telnet session disconnects) when I try to use the "su - xxx command" at the prompt. The command I run is a script which starts a program in the background with a nohup. This backgroud program is used at my site to trap database application severe errors... It is started in by the rc3 script. It used to work and now it don't. Any idea ? Here are the files: In rc3.d i have a link to ../init.d/xfano, the contents of that file is: ---Snip--------------- #!/bin/sh # # Runs the script on behalf of "lpfano" user # if [ -f /u01/outils/xfano ]; then su - lpfano -c "/u01/outils/xfano.ksh > /dev/null 2>&1" fi ---End Snip--------------- Here is a part of the script that is called by the rc3.d script (I know I could have put the following script content in rc3.d but I wanted the author of the script to modify it at his heart content...) #!/bin/ksh ## Var. d'envir. globales REP_LOG=/nfs01/lep/fin_ano export F_LOG=${REP_LOG}/xfano.log export TM_SLEEP=30 export MAX_ERREUR=60 #Demi-heure ## Epurer le fichier de log avant de demarrer if [ -e "$F_LOG" ]; then rm -f $F_LOG fi ## Var. d'oracle export ORACLE_SID=lpdev ## Definition des instances a verifier export NB_INSTANCE=1 export PAORAUSERPSW1='gula1/lep' export F_ERR1=${REP_LOG}/fa ## Var. d'envir. pour la trace export LP_TRACE=1 ## Exec. du programme de suivi des fins anormales nohup /u01/outils/xfano > /dev/null 2>&1 & | /|\ | |_____ This command makes my telnet die ! (It used to work before...) Thanks !