On Tue, 2002-02-05 at 13:23, Kyle McDonald wrote:
> >      $curdttm = 'echo $blank |date +%Y%m%d-%H%M'
> > 
> > I have used this on both AIX and HP-UX and it has worked great.
> 
> Why the echo '$blank |' ???

If I remember correctly, I wrote this script originally on an AIX
machine, just the data +%Y%m%d-%H%M command would not do it unless I
attached it to something, hence the echo $blank|.  I don't remember
exactly, but there was some reas I did it that way.

> just the 'date +%Y%m%d-%H%M should work.
> 
> Also to answer your question, you want the backwards single quote(`)
> not the forwards one(') if you want the commands in the quotes to be
> replaced by the output of those commands.

That worked!

Thanks!

-- 
...Rob
 
=====================================================================
Robert Goshko                  Axis Computer Consulting Services, Inc
President                              Sherwood Park, Alberta, Canada
http://www.axis-dev.com/      Supporting the Revolution In Your World
=====================================================================
 
  1:49pm  up  4:20,  2 users,  load average: 1.17, 1.36, 1.50

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to