How can I add arguments to OSX launchd plist to pipe output to a log file?

前端 未结 3 1918
滥情空心
滥情空心 2021-02-10 05:53

I have tried many different variation on this but just can\'t get it to work.

I have a plist file:




        
3条回答
  •  北恋
    北恋 (楼主)
    2021-02-10 06:08

    The redirection operators can't be used as arguments. You can either make another script for the pipeline or use bash -c.

    bash
    -c
    bash ~/Desktop/test.sh >> ~/Desktop/test
    

提交回复
热议问题