我需要在red中从python程序(python2.7)执行bash脚本,而这个bash脚本必须以splunk用户的身份从另一个用户帐户运行。在Linux中,我将首先切换到splunk user su - splunk,然后以splunk用户身份在下面输入命令./path/myBashFile.sh"],shell=True,stdin=cmd1.stdout,stdout=subprocess.PIPE)
cmd2.stdout 我仍然无
切换用户最终会继续,但是为什么会显示这些消息呢?:~ # su --bash: eval: line 27: syntaxerror: unexpected end of file
-bash: eval: line 26: unexpected EOF while looking for matching `"'
cp -r ~/Downloads/flash_player_npapi_linux.x86_64 ~/usr/lib/firefox-addons/pluginscp: cannotfirefox-addons/plugins': No such file or directory$ /usr/lib/firefox-addons/plugins
bash注:我是一个Windows