Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can a shell script control another script

Tags:

bash

shell

unix

I remember vaguely a technique using pipes for communication between two shell processes.

Are there any tutorials available on how to setup and control a subshell?

like image 578
stacker Avatar asked Nov 28 '25 19:11

stacker


1 Answers

Are you talking about named pipes?

mkfifo pipe
ls -l >pipe #type this is one shell
cat <pipe #type this is another one

No one reads if no one writes.
No one writes if no one reads.

like image 177
Alberto Zaccagni Avatar answered Nov 30 '25 08:11

Alberto Zaccagni



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!