Bash Sub Shells

  2008-11-12 19:00:02
When writing bash scripts you sometimes need to run commands in the background. This is easily accomplished by appending the command line to be run in the background with an ampersand"&". But what do you do if you need to run multiple commands in the background? You could put them all into a separate script file and then execute that script followed by an ampersand, or you can keep the commands in your main script and run them as a sub-shell. 
  PNG Image  PNG Image  PNG Image
  Related tags  


This particular article has been collected via RSS syndication. We apologize if it's too brief.
If You wish to publish articles on LinuxStreet.net please contact us.


  Similar articles found on LinuxStreet  
ImageCLI Magic: Enhancing the shell with fish
ImageBasic I/O Redirection Differences In Sh/Ksh, Bash and Zsh On Linux And Unix
ImagePython for Bash scripters: A well-kept secret
ImageSimply one of the best Bash FAQ's on the net..
ImageBash Parameters in Linux
ImageGetting Error Values From The Middle Of A Pipe Chain In Bash
ImageDebug your shell scripts with bashdb
ImageHow To Fake Associative Arrays In Bash
ImageSave time at the command line with shell aliases and functions
ImageTeach an old shell new tricks with BashDiff

Leave a comment on this article


Captcha

  
Check this if the code you see is not readable and resubmit the form.
(Data you entered will be preserved)



  

Comments (0)