51Testing软件测试论坛

标题: launch shell script fail in STAX [打印本页]

作者: peterbull    时间: 2011-7-5 11:27
标题: launch shell script fail in STAX
本帖最后由 peterbull 于 2011-7-5 11:28 编辑

1/. launch scripts ok in STAF command as below
    test:~ # staf local process start shell command 'su - beyond -c "/home/beyond/test/test.sh -pp 3389"'
2/. launch scripts fail in STAX monitor, and display below message in staf console
    su: invalid option -- a Try `su --help' for more information.
3/. stax xml pass validation in STAX monitor
<script> LinuxMachine = ['192.168.0.52'] ShellStart = 'su - beyond -c "/home/beyond/test/test.sh -pp 3389"' </script>
<stafcmd> <location>'%s' % machineName</location> <service>'process'</service>
<request>'start shell command %s' % ShellStart </request> </stafcmd>




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2