source: nscp/scripts/python/test_second.py @ 04ef932

0.4.00.4.10.4.2
Last change on this file since 04ef932 was 04ef932, checked in by Michael Medin <michael@…>, 22 months ago

2011-08-10

  • Fixed so it builds and runs on linux (but parser had issues so disabled som grammar rules whichneeds to be enabled again)
  • Added a lot of freatures and cleand up the PythonScript module
  • Started to merge som features from PythonScript back to Lua script


2011-08-07

  • Fixed a lot of issues with PythonScript module adding suport for alias and "raw command processing"
  • Fixed issue with loading plugins and aliases as well as duplicate plugin detection


2011-08-01

  • Property mode set to 100644
File size: 290 bytes
Line 
1from NSCP import Settings, Functions, log, status
2
3def test(args):
4        log('second: %s'%args)
5        return (status.OK)
6
7def init():
8        log('Second says hello')
9        fun.register_simple('second', test, 'This is a command from another script...')
10
11def shutdown():
12        log('Second says goodby...')
Note: See TracBrowser for help on using the repository browser.