As of version 6 there's a Directory Listing action. -----Original Message----- From: Wayne Irvine [mailto:[email protected]] Sent: Tuesday, February 20, 2018 5:30 PM To: [email protected] Subject: TeraScript-Talk: Return a directory listing
As usual, 5 seconds after I press send I come up with the solution. I wrote a script ‘listSPAMdirectory.sh’: #!/bin/sh # list SPAM directory cd /Library/Server/Web/Data/Sites/~byteserve/SPAM/ ls -1 I then called it from the Command Line action. And then displayed ‘@@resultset’ DONE! Wayne Irvine _________________________ I would like to return the list of files in a directory ls -1 I use the Command Line Action and type the absolute path followed by the above command. How do I direct the results to a var? Wayne Irvine Byteserve Pty Ltd w: http://www.byteserve.com.au/ e: [email protected] p: +61 02 9960 6099 m: 0409 960 609 f: +61 02 9960 6088 ---------------------------------------- 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.
