Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Bash / Shell Scripting (http://www.programmingforums.org/forum26.html)
-   -   Bash Script Help (http://www.programmingforums.org/showthread.php?t=1883)

pelon Jan 17th, 2005 3:48 PM

Bash Script Help
 
We have a bash script issue seeking advice on, I'm hoping someone can tell us what we are leaving out.

The script is part of cluster script that start a database application. The command runs fine and starts the database from a command prompt by it shelf, but seems to hand or freezes when it is added to the script.

When we check with "ps" command it displays under STAT with an R< and the less than sign. The command is ran as root, here is what it look like.


" d3 -a x " is the command we are have a problem with. Like I said it works fine at the command prompt, just won't work from within the script.

I am positive that we must be leaving something out that is required when run within a shell script.


Any suggestion welcome

lakerdonald Feb 9th, 2005 7:40 PM

Can You Post the Script
 
Can you post the script here so we can see how you are trying to go about this?

Vorlin Feb 28th, 2005 3:58 PM

Have you tried changing it from:
:

d3 -a x

To this:
:

nohup d3 -a x &

?


All times are GMT -5. The time now is 6:08 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC