Nabeel,

I'd have to agree with John, perl would handle it simply for you. Depending on how many records your going to store and how many concurrent users, you could also use SQLite which is an easy install, very small foot print and takes minimal resources. Installing the perl module DBD::SQLite will also install the database.

For reading text files I use a perl module called Text::Delimited.

Mike

[EMAIL PROTECTED] wrote:
On 5 May 2006 at 21:37, Nabeel Jafferali wrote:

I have a list of dates (the first column) and values as such:

0101 0530 1220 0630
0201 0531 1221 0629
.
.
3012 0626 0111 0429
3112 0625 0113 0433

I need to look up the values corresponding to today's date, i.e.
${DATETIME:0:4}, and pass them into an Asterisk variable. I could put the
data into MySQL and use the MySQL() command, but that almost seems like
overkill, especially because the data is so small and is static (and MySQL
is not currently installed on the Asterisk box).

Is there an easy was to store this in a file and lookup directly in the
Dialplan? Is there a Linux application that I could pass in a System()
command to do it?

You could write a Perl script to store the data in whatever format you need into a file and another Perl script to search and respond
however you require

JP


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Mike Ashton

Quality Track Intl

Ph:     647-722-2092 x 251
Cell:   416-527-4995
Fax:    416-352-6043

QTI CONFIDENTIAL AND PROPRIETARY INFORMATION

The contents of this material are confidential and proprietary to Quality Track 
 International, Inc.
and may not be reproduced, disclosed, distributed or used without the express 
permission of an authorized representative of QTI.
Use for any purpose or in any manner other than that expressly authorized is 
prohibited.
If you have received this communication in error, please immediately delete it 
and all copies, and promptly notify the sender.



begin:vcard
fn:Mike Ashton
n:Ashton;Mike
org:Quality Track Intl
adr:;;63 Kenpark Ave;Brmpton;ON;L6Z 3L4;Canada
email;internet:[EMAIL PROTECTED]
title:CTO
tel;work:905-840-4995
tel;cell:416-527-4995
x-mozilla-html:FALSE
url:http://www.QualityTrack.com
version:2.1
end:vcard

Reply via email to