home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 121 
 Alan Ianson to Rick Smith 
 bash script 
 19 Jun 21 14:51:26 
 
MSGID: 1:153/757.3 aa23ad84
REPLY: 1:105/10.1 60ce374b
TZUTC: -0700
CHARSET: LATIN-1
> Greetings All!


> Not sure if this is where I would ask this question or not?

This is as good a place as any. There is also the BASH and TUXPOWER areas
although they are low traffic.

> I am trying to make bash script to combine a couple of other scripts  and I
> had a couple of questions.  So If I make a script that performs something and
> then it calls another script, would the first script then pause until the
> called side script completes?

Something like the ability to "call" another bat file in DOS and then the
calling bat file continues with what it was doing?

I am sure there is a way to do that in bash also but even after all these
years my bash skills are less than what they could/should be.

> If not is there a way to make it wait to move forward until the
> other one completes?  I hope I am describing this well for you.

I sometimes do a test for certain files and if found the script will do that
with an "if", like this..

if [ -f /usr/local/fido/dotic.now ]; then
   rm /usr/local/fido/dotic.now
   /usr/local/bin/htick toss
   /usr/local/bin/mfreq-index
fi

Then the script carries on with what it is doing.
--- BBBS/Li6 v4.10 Toy-5
 * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757.3)
SEEN-BY: 1/123 14/0 90/1 105/81 114/709 120/340 123/131 129/305 226/30
SEEN-BY: 227/114 702 229/424 426 428 550 616 700 1016 1017 240/5832
SEEN-BY: 249/206 317 400 282/1038 292/854 298/25 26 301/1 317/3 322/757
SEEN-BY: 342/200 633/280
PATH: 153/757 221/6 301/1 229/426 317/3 298/25 14/0 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca