Stefan Wehr <[EMAIL PROTECTED]> writes: > function my_shutdown() > -- start sync-script here! > ioncore.shutdown(); > end
Better alternative: http://modeemi.cs.tut.fi/~tuomov/ion/doc-3/ionconf/node7.html#SECTION007100000000000000000 Hook name: ioncore_deinit_hook Parameters: () Description: Called when Ion is deinitialising and about to quit. > The problem is now: how to start the sync-script? The call > ioncore.exec('xterm -e sync-script') does not block until the script > has finished and so shutdown proceeds without finishing the > sync-script. Is there some way to program the desired behavior? I guess ion would need a ioncore.blocking_exec(...) for that. -- Matthieu
