tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* HELP: su - xxx command => Kills me !
@ 1996-07-25 14:08 Guy Dallaire
  0 siblings, 0 replies; only message in thread
From: Guy Dallaire @ 1996-07-25 14:08 UTC (permalink / raw)
  To: tru64-unix-managers

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 !

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

only message in thread, other threads:[~1996-07-25 14:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-07-25 14:08 HELP: su - xxx command => Kills me ! Guy Dallaire

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