1

Is it possible to implement the following shell script completely as a launchd plist to generate a signature with timestamp in the StandardErrorPath / StandardErrorPath files?

#!/bin/sh echo "Hi, your FOO.plist was here at $(date)" 

This one doesn't work:

… <key>ProgramArguments</key> <array> <string>echo</string> <string>"Hi, your FOO.plist was here at $(date)"</string> </array> … 
1
  • I feared that – but five nervous guys with huge reputation from stackoverflow told me to post it here. I'm sorry for that. Thanks to LCC anyway. Commented Dec 23, 2013 at 8:27

1 Answer 1

0

launchd does not interpret $(date). A shell does:

<key>ProgramArguments</key> <array> <string>/bin/sh</string> <string>-c</string> <string>echo Hi, your FOO.plist was here at $(date)</string> </array> 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.