| Barry Margolin 2007-08-24, 1:23 am |
| In article <1187872625.256624.120500@x35g2000prf.googlegroups.com>,
harry <harishgowda84@gmail.com> wrote:
> In unix environment the deamon(secrvr_dae) is not getting started with
> the following command
>
> SMS_DIR="/oracle/usr1/sms/"
> su orbit -c "$SMS_DIR/.profile; cd $SMS_DIR/bin;./secrvr_dae"
>
> (;./secrvr_dae) secrvr_dae is not getting started with the above
> command
>
> Let me know what is wrong with the above command in the script
The first command should probably be ". $SMS_DIR/.profile". The server
probably depends on some of the environment variables set in the
..profile script. Since you don't use the "." command to run the script,
its variable settings are discarded when the script finishes, instead of
persisting into ./secrvr_dae.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
|