home bbs files messages ]

Just a sample of the Echomail archive

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

 Message 7268 
 Kai Richter to Rick Smith 
 Bash script 
 20 Jun 21 02:08:44 
 
REPLY: 1:105/10.1 60ce37d2
MSGID: 2:240/77 60ce89dc
CHRS: LATIN-1 2
TID: hpt/lnx 1.4.0-sta 09-04-05
Hello Rick!

19 Jun 21, Rick Smith wrote to All:

 RS> trying to make bash script to combine a couple of other scripts

bash plus bash or bash plus non-bash scripts??

 RS> If I make a script that performs something and then it calls say
 RS> another script, would the first script then pause until the called
 RS> side script completes?

Yes. A script is basically a list of commands running in sequence one by one.

ls A*
ls B*

would list all files with A* and then all files with B*.

A command is basically an executable programm or another script.

Many shells have internal commands for workflow control like loops and breaks.

 RS> If not is there a way to make it wait to move
 RS> forward until the other one completes?

Yes. On many conditions.

man bash
man test

should be your friend. Take your time and use the search function of man and
type /loop for example. Jump with n to the next hit. Or press h for the help
file.

Regards

Kai

--- GoldED+/LNX 1.1.4.7
 * Origin:  Monobox  (2:240/77)
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 452 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: 240/77 5832 280/464 229/101 317/3 298/25 14/0 229/426


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

(c) 1994,  bbs@darkrealms.ca