Subshells Enclose a command or commands in parens to run it in a subshell. A completely new Bash process runs the commands you enclose. Example Send output of two commands to a third via one pipe: $ ( echo "Hello, cutie!" ; echo Miss you! ) \ > | mail sweetie@home_sweet_home.com Poor-man's daemonize $ ( mozilla-firefox &)
Copyright 2005, Bri Hatch of Onsight, Inc.
Presented at LFNW - LinuxFest Northwest, Bellingham, Washington, Apr 2005
Presentation created using vim and MagicPoint.