have a problem:
local stat = assert(os.execute("/usr/bin/pgrep -f 'tail -F /opt/aaa' >& /dev/null"))
print(stat) --> 0
But when I type pgrep -f 'tail -F /opt/aaa' >& /dev/null
in bash, and then call echo $?
it returns 1. Has anybody encountered this before, or know the reason why ;-) what happened?