can not get an ls /directory/subdir | tail -1 to execute
Posted: Fri May 29, 2015 10:44 am
In Director version 4.6.1 I can't seem to get the right syntax to execute a the below native command in Linux. I have tried several different ways of splitting this up into varialbes in seperate arguments etc. etc. to no avail.
ls /directory/subdir | tail -1
config is as follows:
EXEC TASK - eXECUTABLE* = LS
arg: /directory/subdir | tail -1
Returns this error:
5/29/15 11:23:40 AM INFO Preparing to execute the native command 'ls' with the argument(s) '/directory/subdir/inbound | tail -1'
5/29/15 11:23:40 AM INFO ls: cannot access /directory/subdir/inbound | tail -1: No such file or directory
5/29/15 11:23:41 AM INFO The native command 'ls' finished with a return code of '2'
5/29/15 11:23:41 AM ERROR [9003 - exec] The executable encountered an error with a return code of '2'. To ignore this error, set the attribute 'errorIfExecutableFails' to false.
Thanks,
Paul
ls /directory/subdir | tail -1
config is as follows:
EXEC TASK - eXECUTABLE* = LS
arg: /directory/subdir | tail -1
Returns this error:
5/29/15 11:23:40 AM INFO Preparing to execute the native command 'ls' with the argument(s) '/directory/subdir/inbound | tail -1'
5/29/15 11:23:40 AM INFO ls: cannot access /directory/subdir/inbound | tail -1: No such file or directory
5/29/15 11:23:41 AM INFO The native command 'ls' finished with a return code of '2'
5/29/15 11:23:41 AM ERROR [9003 - exec] The executable encountered an error with a return code of '2'. To ignore this error, set the attribute 'errorIfExecutableFails' to false.
Thanks,
Paul