From: JOSEPH KREMBLAS (jkremblas@REDHEARTGIFTS.COM)
Date: Tue Feb 10 2004 - 11:58:23 EST
BTW - be sure the when you pass the command "echo hello > /tmp/testecho"
to your script that the whole command is enclosed in single quotes or
double quotes; otherwise, the shell will only pass 'echo hello' to the
script and redirect the rest of the output to the /tmp/testecho file
upon execution.
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
JOSEPH KREMBLAS
Sent: Tuesday, February 10, 2004 9:55 AM
To: aix-l@Princeton.EDU
Subject: Re: script question
There are a few ways you can execute it. Here are a couple:
eval $COMMAND
OR echo $COMMAND | ksh
Best regards,
Joseph
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
John Dunn
Sent: Tuesday, February 10, 2004 7:36 AM
To: aix-l@Princeton.EDU
Subject: script question
If my script is being passed a command such as
echo hello >/tmp/testecho
How do I execute it in the script?
e.g
COMMAND=$*
# now I want to execute it
????
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:34 EDT