批处理文件必须指定解释器
如果是直接的命令还好说,如
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/bash
Error: Could not execute posix command: Exec format error