That won’t work that way – the command line should be the path/executable only.
The script file needs to contains the “#!/bin/sh” as the first line. But it also needs to have executable flags set. You should be able to write a small bash script that will set everything in the folder to executable like this: #!/bin/sh chmod 777 /Library/…path…/tempscripts/*.sh Then have TS: 1- Write the temscript 2- Call that above script to make the temp script executable 3- Call the temp script 4- Delete the temp script Robert From: Wayne Irvine [mailto:[email protected]] Sent: Thursday, April 19, 2012 8:22 PM To: [email protected] Subject: Re: TeraScript-Talk: Permissions The guys at the ImageMagick forums are telling me that execute permissions are unimportant and as long as I specify what sort of script it is. So: bash /Library/Server/Web/Data/Sites/~isellit/IMcaptcha/tempscripts/tempscript6509.sh Works in the terminal But when I prefix the Command line with it in the External action: bash <@INCLUDE FILE='/admin/filepath.txt'>IMcaptcha/tempscripts/tempscript@@local$randnum.sh I get an error: Error An error occurred while processing your request: File: imcaptcha.taf Position: External Class: External Main Error Number: 0 The program "bash /Library/Server/Web/Data/Sites/~isellit/IMcaptcha/tempscripts/tempscript6509.sh" does not exist, or is not readable. Wayne Irvine On 20/04/2012, at 9:30 AM, Wayne Irvine wrote: On 20/04/2012, at 3:29 AM, Robert Shubert wrote: You'll have to make a helper script that will take the name file name as an argument and adjust its permissions before you attempt to execute it. Wasn't problems passing arguments to scripts the reason I started writing scripts on the fly? Wayne _____ To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body. _____ To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body.
