Unix Programming - deamon is not getting started with the script(Urgent)

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > August 2007 > deamon is not getting started with the script(Urgent)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author deamon is not getting started with the script(Urgent)
harry

2007-08-23, 1:27 pm

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

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 ***
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com