|
|
| Author |
Message |
vcarp Beginner
Joined: 05 Jul 2007 Posts: 2 Location: Paris, France
|
Posted: Thu Jul 05, 2007 2:52 pm Post subject: Writing a script with multiple values |
|
|
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
|
Posted: Thu Jul 05, 2007 3:50 pm Post subject: |
|
|
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
|
Posted: Fri Jul 06, 2007 7:49 am Post subject: |
|
|
| 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 |
|
 |
|