[TriLUG] bash weirdness

Allen Freeman knieveltech at yahoo.com
Mon Apr 6 17:03:10 EDT 2009


Does this help?
http://tldp.org/LDP/abs/html/process-sub.html

--- On Tue, 4/7/09, stan briggs <stan at stanbriggs.com> wrote:

From: stan briggs <stan at stanbriggs.com>
Subject: [TriLUG] bash weirdness
To: "Triangle Linux Users Group General Discussion" <trilug at trilug.org>
Date: Tuesday, April 7, 2009, 1:15 AM

all,

i'm trying to get a series of commands to execute with a bash shell.
someting like this:
line="dpkg -l > all-packages.txt"
which i then try to execute with
$line
`$line`
output=`$line`.
none seem to execute the command. i'm guessing it has to do with the pipe
symbol and explains why similar commands with shell re-directs in them fail,
also.

can anyone point me to a good reference that explains this?

thanks,
stan

-- 
Stan B. Briggs
+1-919-414-9513
+++++++++++++++++++
the oBoJ Foundation is the open source community coming together for the
benefit of society. our events and work are for the purpose of raising
awareness, raising funds, and performing activities for good causes.
participation is open to all who wish to support worthwhile public causes.
www.oBoJ.org
+++++++++++++++++++
Little tiny dreams require little tiny thoughts and little tiny steps.
Great big dreams require great big thoughts and little tiny steps.
+++++++++++++++++++
--
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG FAQ  : http://www.trilug.org/wiki/Frequently_Asked_Questions



      


More information about the TriLUG mailing list