我尝试用packagemaker编写安装程序,在安装过程中运行shell脚本.我想在静默模式安装期间将一些参数传递给shell脚本.类似的东西
$installer -pkg MyInstaller.pkg -my_argument1 -my_argument2
Run Code Online (Sandbox Code Playgroud)
我能想到的两个选择是,
有没有更好的方法来使用命令行参数或环境?
我的应用程序收到mach IPC消息并返回呼叫者的答案.我有马赫调用者port(msgh_remote_port)
,我想知道PID
调用者.我可以通过马赫端口找到OSX上的PID
特定马赫端口吗?