HELP: su - xxx command => Kills me !

From: Guy Dallaire <dallaire_at_megatoon.com>
Date: Thu, 25 Jul 1996 10:08:34 -0400 (EDT)

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 !
Received on Thu Jul 25 1996 - 16:43:43 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT