lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

Writing a script with multiple values

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
vcarp
Beginner


Joined: 05 Jul 2007
Posts: 2
Location: Paris, France

PostPosted: Thu Jul 05, 2007 2:52 pm    Post subject: Writing a script with multiple values Reply with quote

Hi,

I'd like to write a script to get multiple values in return.
What is the syntax to do so ?

The get process is long, so I'd like to call it once for all my datas.
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Thu Jul 05, 2007 3:50 pm    Post subject: Reply with quote

This can be accomplished in several hacky ways.

For processes that take a long time to get the values and return multiple values I would recommend running the get-process from cron and caching its output somewhere that NetMRG can easily get access to it (MySQL database, file that can easily be grepped, etc).

-Doug
Back to top
vcarp
Beginner


Joined: 05 Jul 2007
Posts: 2
Location: Paris, France

PostPosted: Fri Jul 06, 2007 7:49 am    Post subject: Reply with quote

OK; Thank you. I will try something like that (maybe a flat file will be enough, values are not changing too often).
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group