Simple task not working

(imported topic written by anthonymap91)

I wrote this task to pull lsmode on AIX servers, but it does not appear to be updating the line of file correctly. Am I missing anything?

Thanks

TASK

delete __appendfile

delete /tmp/task_lsmcode.sh

appendfile #!/bin/sh

appendfile lsmcode > {pathname of parent folder of client}/task_lsmcode.log

move __appendfile /tmp/task_lsmcode.sh

wait /bin/sh -C /tmp/task_lsmcode.sh

analysis:

if exist file “task_lsmcode.log” of parent folder of client then lines of file “task_lsmcode.log” of parent folder of client else “File not found”

(imported comment written by SystemAdmin)

Hi Anthony,

Does the Action actually fail? If it runs succesfully, does the lsmcode.log not get created or does it just have invalid info in it?

Mark.