Re: [Flightgear-devel] Writing output to physical nasal file - How To

2011-05-26 Thread Vadym Kukhtin
2011/5/26 xsaint xsa...@gmail.com


 With my limited knowledge in nasal, i am getting io.open(): opening
 file 'cna.log' denied (unauthorized access)




You need to save file into your /fgdata folder.

-- 
---
WBR, Vadym.
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Writing output to physical nasal file - How To

2011-05-26 Thread Csaba Halász
On Thu, May 26, 2011 at 2:53 PM, xsaint xsa...@gmail.com wrote:

 I am trying to capture some values from FG property tree at 5 minutes
 interval and write these values to a file called , capture.log
 With my limited knowledge in nasal, i am getting io.open(): opening
 file 'cna.log' denied (unauthorized access)

Nasal file permissions are controlled by the $FG_ROOT/Nasal/IORules file.
Edit it based on the comments at the top, or use a file that is
allowed by default, such as  $FG_HOME/*.log

-- 
Csaba/Jester

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Writing output to physical nasal file - How To

2011-05-26 Thread xsaint
Thanks for the replies so far

My apologies, yes i tried to change the entries earlier on the iorules 
file, still i had the same error...and even when i tried saying to FG 
root or data, same error.
I will like to save the file to FGData folder.

Anyone else has a sample nasal code to show the following please?
1)file open , append, save to FGroot/FGdata/ $home / or C:\

Thank you all
cheers




On Thursday 26,May,2011 09:10 PM, Csaba Halász wrote:
 On Thu, May 26, 2011 at 2:53 PM, xsaintxsa...@gmail.com  wrote:
 I am trying to capture some values from FG property tree at 5 minutes
 interval and write these values to a file called , capture.log
 With my limited knowledge in nasal, i am getting io.open(): opening
 file 'cna.log' denied (unauthorized access)
 Nasal file permissions are controlled by the $FG_ROOT/Nasal/IORules file.
 Edit it based on the comments at the top, or use a file that is
 allowed by default, such as  $FG_HOME/*.log



--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Writing output to physical nasal file - How To

2011-05-26 Thread Arnt Karlsen
On Thu, 26 May 2011 20:53:44 +0800, xsaint wrote in message 
4dde4d58.2050...@gmail.com:

 Good day,
 
 Any one could guide me please on this please?
 
 I am trying to capture some values from FG property tree at 5 minutes 

..why only at 5 minutes???

 interval and write these values to a file called , capture.log
 With my limited knowledge in nasal, i am getting io.open(): opening 
 file 'cna.log' denied (unauthorized access)
 
 Any kind soul could give me a simple code on how i can go about doing 
 the above please?

..easiest way is start FG with --httpd=port , e.g. --httpd=12345
(Enable http server on the specified port) and then use netcat or 
wget or some such lightweight web downloader to haul out what you 
want from the property tree, you may want to do this with another 
box on your lan to minimize the load on your FG box.

-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel