![]() |
Thanks guys, it works like a charm!!! -----Original Message----- From: hylafax-users-bounce@hylafax.org [mailto:hylafax-users-bounce@hylafax.org]On Behalf Of Giulio Orsero Sent: Thursday, March 14, 2002 11:08 AM To: hylafax-users@hylafax.org Subject: Re: [hylafax-users] tts and killtime formatting On Thu, 14 Mar 2002 10:56:33 -0600, "Sanjiv Bawa" <sbawa@tabmaster.com> wrote: >This may sound like a silly question..... > >I know the following script works because I can test it on the command line. >But, I cant get it to work in my notify script.... > >I use > >#!/bin/sh >.... >TME1=`grep tts: $INFO_FILE | awk -F: '{print $2}'` >START_TIME=`perl -e 'print scalar(localtime($TME1))'` > >TME1 does get set properly. But START_TIME is always Dec 1969 (as if TME1 If you use vars like that you need double quotes for perl input. Moreover, if you want to do it in 2 passes, at least lose grep TME1=`awk -F: /^tts/'{print $2}' $INFO_FILE` START_TIME=`perl -e "print scalar(localtime($TME1))"` -- giulioo@pobox.com ____________________ HylaFAX(tm) Users Mailing List _______________________ To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null ____________________ HylaFAX(tm) Users Mailing List _______________________ To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null