Program 和 ProgramArguments 有什么不同
What's the different of Program and ProgramArguments
launchdaemon.plist中'Program'和'ProgramArguments'有区别吗?
我看到有的plist只有'ProgramArguments',有的还有'Program',想搞清楚。
提前致谢。
确实有点混乱,但在大多数情况下两种形式都是有效的。
Program < string>
This key maps to the first argument of execvp(3). If this key is missing, then the first element of the array of strings provided to the ProgramArguments
will be used instead. This key is required in the absence of the ProgramArguments
key.
ProgramArguments < array of strings>
This key maps to the second argument of execvp(3). This key is required in the absence of the Program
key. Please note: many people are confused by this key. Please read execvp(3) very carefully!
launchdaemon.plist中'Program'和'ProgramArguments'有区别吗?
我看到有的plist只有'ProgramArguments',有的还有'Program',想搞清楚。
提前致谢。
确实有点混乱,但在大多数情况下两种形式都是有效的。
Program < string>
This key maps to the first argument of execvp(3). If this key is missing, then the first element of the array of strings provided to theProgramArguments
will be used instead. This key is required in the absence of theProgramArguments
key.ProgramArguments < array of strings>
This key maps to the second argument of execvp(3). This key is required in the absence of theProgram
key. Please note: many people are confused by this key. Please read execvp(3) very carefully!