jay (support) wrote:jheddings wrote:Two quick requests on using embedded scripts...
1. Embedded Shell Scripts - just like the other types, but an embedded shell script would be nice. The Python subprocess library is fine for quick one-liners, but it is kind of messy for longer shell scripts. And some things are just easier in a shell script than Python...
Jay,
I haven't been able to get the Server Actions->Script and File Actions->Run Shell Script action to work.
I have the script defined as: /Users/Benjamin/dropbox/HomeAutomation/lockdown/run_warning1.command
But the UI is showing the script as: run script: /users/benjamin/dropbox/homeautomation/lockdown/run_warning1.command
Please note the difference in cases.
And the log file is showing:
Schedule First Warning for Computer Lockdown
Action Collection Error Script file doesn't exist: /Users/Benjamin/dropbox/HomeAutomation/lockdown/run_warning1.command
But,
nerv:dropbox Benjamin$ ls -l /Users/Benjamin/dropbox/HomeAutomation/lockdown/run_warning1.command
-rwxr-xr-x@ 1 Benjamin staff 166 Jul 27 21:43 /Users/Benjamin/dropbox/HomeAutomation/lockdown/run_warning1.command
nerv:dropbox Benjamin$
It's clearly there....
Any ideas?
- Benjamin