From: Ying Y. YY Ye <yi...@cn...> - 2014-07-16 09:59:14
|
Hi guys, I'm a little confused with the problem, which is as follows: I need to run the command ". functions"(the functions file contains shell functions) in my test machine, so the python script in my automation machine contains following line: tmp = STAFLib.run_process_command(handle,machine_ip,". functions") the result is that tmp[0] returns 1,which means the command cannot be executed successfully. And the return code of STAF for 1 is: 1 Invalid API This indicates that a process has tried to call an invalid internal STAF API. If this error occurs, report it to the authors. However, it is successful when I typed the command ". functions" manually in my test machine. Besides, /bin/usr/shell(ksh) is used in test machine. Hence, why does the command fail in STAF way? Does anyone have any idea? Many thanks. Best regards, Ye, Ying Ying(叶莹莹) Software engineer, 3rd-party SAN test IBM GCG System & Technology Lab Tel:+86-21-60928963 Email: yi...@cn... Add: 1F, Building#10, NO.399 Ke Yuan Road, Zhangjiang Innovation Park, 201203, Shanghai, China |