ORBIT-USER: Nodehandler -t

Einar Vollset einar at cs.cornell.edu
Wed Jul 26 17:44:20 EDT 2006


Hi,

I've found that the documentation on the website sometimes refer to  
what I _think_ must be an old version of nodehandler - causing
the type of behaviour you describe. In general, if there's not some  
weird looking gibberish you don't understand at the bottom of the
script then you've got the wrong one :-D

App definition scripts that work (sort of anyways) for me contains  
this stuff at the end:

if $0 == __FILE__
   require 'stringio'
   require 'rexml/document'
   include REXML

   sio = StringIO.new()
   a.to_xml.write(sio, 2)
   sio.rewind
   puts sio.read

   sio.rewind
   doc = Document.new(sio)
   t = AppDefinition.from_xml(doc.root)

   puts
   puts "-------------------------"
   puts
   t.to_xml.write($stdout, 2)

end

As for prototype definitions, the following appears necessary:

if $0 == __FILE__
   p.to_xml.write($stdout, 2)
   puts
end


Hope that helps - if not then I haven't got a clue.. ;-)

Cheers,

Einar


On Jul 26, 2006, at 1:15 PM, Daryl Siu wrote:

> Hi I was wondering if it would be possible to view the specific  
> script that runs when the -t operator is included.  I am having  
> problems with OML not starting when nodehandler is run and this is  
> the only script I've found that reports the data properly.  I tried  
> a manual copy and paste of the helloWorld script provided online  
> but got the same result as my custom script.  If I could view the  
> actual test script that would be extremely helpful.  Thanks.
>
> -- 
> Daryl Siu




More information about the orbit-user mailing list