我在smbclient中执行shell (bash)脚本时遇到问题。
它看起来是这样的:
rafal@amilo:~/Desktop$
rafal@amilo:~/Desktop$ #script.sh is here
rafal@amilo:~/Desktop$
rafal@amilo: smbclient //host/user -U user%password
smb: \>
smb: \> #do some automatic things here: execute script.sh from rafal@amilo
smb: \>
smb: \>exit
rafal@amilo:~/Desktop$ #now i have new files in Desktop我怎么才能让它工作呢?
发布于 2015-05-06 20:00:27
smbclient允许您进入samba目录。如果目标服务器是Windows,您将无法(轻松地)运行"bash script",但您不能使用专用工具运行“批处理脚本”。例如,您可以使用WinExec (http://sourceforge.net/projects/winexe/)或SMBMap (https://github.com/ShawnDEvans/smbmap)
这些工具与Sysinternals中的PsExec具有相同的行为
https://stackoverflow.com/questions/30060473
复制相似问题