RE: Script not terminating properly

"Geoffrey Scott" <[email protected]>
Newsgroups gmane.org.user-groups.mlug.main
Message-ID <[email protected]>
Russell Shaw wrote:
> Geoffrey Scott wrote:
>> Hi ppl,
>> 	I can't for the life of me figure out why this script below doesn't
>> finish.  Can anyone see what I have done wrong?
>> 
>> #!/bin/bash
>> . /usr/local/open-xchange/etc/admintools.conf
>> 
>> if [ "$1" = "--stop" ]
>> then...
> 
> It's easiest to put: echo "passNNN" statements on every few lines.
> 
That's what I did when I stuck in the 
echo `date`
echo "all done" 

Lines at the end.  It gets to echoing "all done" and then stops.  This
script is actually called from my main backup server, hence the --start and
--stop.


Regards Geoff Scott
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.