From 1661ce5d9392abb986ab41e6942fcd74071e486e Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Tue, 30 Oct 2018 10:49:38 +0100 Subject: [PATCH] Startup --- script/X_X04SA_do_casave.py | 241 ++++++++++++++++++++++++++++++++++++ 1 file changed, 241 insertions(+) create mode 100644 script/X_X04SA_do_casave.py diff --git a/script/X_X04SA_do_casave.py b/script/X_X04SA_do_casave.py new file mode 100644 index 0000000..c4b7b88 --- /dev/null +++ b/script/X_X04SA_do_casave.py @@ -0,0 +1,241 @@ +#! /usr/bin/env python +''' + X_X04SA_do_casave.py - Script to execute a casave command. + ==================== + + Usage: + + %s [] -- + + Description: + casave seems to be not 100%% reliable, at least when run from + spec via a "unix" command. It sometimes hangs up. + + X_X04SA_do_casave.py will spawn a child process to run casave + with the given . If the process does + not terminate within the timeout (default = 5 secs), the + child process will be killed. + + If the child process is killed, will + be parsed, looking for a -asciiout option. If it is found, + a file of the given name will be created containing the text + + casave killed at