|
本帖最后由 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> |
|