HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
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