Re: script question

From: Bill Verzal (BVerzal@KOMATSUNA.COM)
Date: Tue Feb 10 2004 - 10:03:43 EST


Perhaps I do not understand.

Are you trying to do this:

      echo "echo hello" > /tmp/testecho
      sh /tmp/testecho

I guess I am confused about what you are trying to do.

BV
--------------------------------------------------------

"If everything is coming your way, then you are in the wrong lane"

Bill Verzal
AIX Administrator, Komatsu America
(847) 970-3726 - direct
(847) 970-4184 - fax

             John Dunn
             <john.dunn@SEFAS.
             CO.UK> To
             Sent by: IBM AIX aix-l@Princeton.EDU
             Discussion List cc
             <aix-l@Princeton.
             EDU> Subject
                                       Re: script question

             02/10/2004 08:57
             AM

             Please respond to
                  IBM AIX
              Discussion List
             <aix-l@Princeton.
                   EDU>

Bill

<<unless you want to perform shell redirects
or pipes.>>

The command that gives me problems is

echo hello > /tmp/testecho

It simply does not work(no outout file)

Since this includes redirection, how can I run it?

John

-----Original Message-----
From: Bill Verzal [mailto:BVerzal@KOMATSUNA.COM]
Sent: 10 February 2004 14:44
To: aix-l@Princeton.EDU
Subject: Re: script question

$COMMAND

on a line all by itself, that is unless you want to perform shell redirects
or pipes.

BV
--------------------------------------------------------

"If everything is coming your way, then you are in the wrong lane"

Bill Verzal
AIX Administrator, Komatsu America
(847) 970-3726 - direct
(847) 970-4184 - fax

             John Dunn
             <john.dunn@SEFAS.
             CO.UK> To
             Sent by: IBM AIX aix-l@Princeton.EDU
             Discussion List cc
             <aix-l@Princeton.
             EDU> Subject
                                       script question

             02/10/2004 08:36
             AM

             Please respond to
                  IBM AIX
              Discussion List
             <aix-l@Princeton.
                   EDU>

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