(imported topic written by anthonymap91)
I built the following task to run every day as a policy to gather AIX user ID information using the lsuser command.
delete __appendfile
delete /tmp/task_userid.sh
appendfile #!/bin/sh
appendfile lsuser -a admin expires account_locked maxage maxexpired ALL > {pathname of parent folder of client}/userid-lsuser1.log
move __appendfile /tmp/task_userid.sh
wait /bin/sh -C /tmp/task_userid.sh
I noticed if i change what is being “piped” to the file userid-lsuser1.log, the analysis that reads this file does not change/update.
Should I delete the old file in this task before I run the command again? How would I do that?
I want to make this as clean as possible.
THanks,
Anthony