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: ying...@cn.ibm.com
Add: 1F, Building#10, NO.399 Ke Yuan Road, Zhangjiang Innovation Park,
201203, Shanghai, China
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users