批处理文件必须指定解释器
如果是直接的命令还好说,如
exec { "re2c-install":
command => "ntpdate x.x.x.x",
}
如果是脚本就要注意了,脚本中必须要加入
#!/bin/bash否则会报错
Error: Could not execute posix command: Exec format error
如果是直接的命令还好说,如
exec { "re2c-install":
command => "ntpdate x.x.x.x",
}
#!/bin/bashError: Could not execute posix command: Exec format error
1696

被折叠的 条评论
为什么被折叠?
