Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] tts and killtime formatting



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
was blank).

Thanks for your help. Sorry, I am no shell script genius....



-----Original Message-----
From: hylafax-users-bounce@hylafax.org
[mailto:hylafax-users-bounce@hylafax.org]On Behalf Of Giulio Orsero
Sent: Wednesday, March 13, 2002 1:32 PM
To: hylafax-users@hylafax.org
Subject: Re: [hylafax-users] tts and killtime formatting


On Wed, 13 Mar 2002 13:02:32 -0600, "Sanjiv Bawa" <sbawa@tabmaster.com>
wrote:

>I am trying to write a couple of custom scripts that pick up data from the
>doneq/* files. There is a confirmation file that has tts and killtime. I
>want to pick them up and format them into some sort of readable format.

# grep tts q208
tts:1015951539

# perl -ne 'print scalar(localtime("$1")) . "\n" if (/^tts:(\d+)/)' q208
Tue Mar 12 17:45:39 2002

--
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



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services