Librenix  
(Show all Scripting articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Scripting: Bash sub shells

Up
vote
Down

Sometimes you need to run scripts in the background...
Creating sub-shells in bash is simple: just put the commands to be run in the sub-shell inside parentheses. This causes bash to start the commands as a separate process. This group of commands essentially acts like a separate script file, their input/output can be collectively redirected and/or they can be executed in the background by following the closing parenthesis with an ampersand.
 read more | score:7777 | -Ray, November 17, 2008
More Programming articles...

Abstract Art on Acrylic Panels

coding headlines

OpenShift Online: a non-developer guide

Tutorial: Install SVN, Configure multi-protocol access (Ubuntu 11.10)

bash scripting: Looping through a list

perl1line.txt: A handy Perl script collection

Add Video Streaming to C/C++ apps with Nex Gen Media Server API

Debugging Shell Scripts

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin