ADSM-L

Re: problem with a su script

2003-04-02 15:22:50
Subject: Re: problem with a su script
From: "Coyle, Jack" <Jack.Coyle AT REXHEALTH DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Wed, 2 Apr 2003 08:30:22 -0500
I thought the syntax to have a specific command executed required the "-c"
option, i.e.

        su - oracle -c /home/oracle/scripts/backup/db_backup.sh

Jack Coyle
Rex Healthcare

> ----------
> From:         Conko, Steven[SMTP:sconko AT ADT DOT COM]
> Reply To:     ADSM: Dist Stor Manager
> Sent:         Wednesday, April 02, 2003 8:25 AM
> To:   ADSM-L AT VM.MARIST DOT EDU
> Subject:      Re: problem with a su script
>
> > On all of our database servers we run an archive nightly but instead of
> a
> > regular "archive" we run a command instead:
> >
> > su - oracle /home/oracle/scripts/backup/db_backup.sh
> >
> > this script handles all the processing of the database and calls a dsmc
> > archive command. on 97% of the servers it works fine. however, on just a
> > few of them... that dont appear to be any different, the script
> > immediately dies with a return code of 1 (no, its not permissions)....
> > however tsm reports it as completed (another problem). it doesnt appear
> > the script ever gets run because we use a debugging statement for the
> > first line that never gets called. nothing in the environment seems to
> be
> > a problem and on one system it just suddenly stopped working without any
> > changes being made.
> >
> > any ideas whats going on here? we're running aix 4.3.3, tsm client 5.1.5
> > and server  aix 4.3.3 tsm 4.2.2... even on the servers it works on.
> >
> > Steven A. Conko
> > Senior Unix Systems Administrator
> > ADT Security Services, Inc.
> >
>

<Prev in Thread] Current Thread [Next in Thread>