lua-users home
lua-l archive

problems with os.execute() return code

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


 Hello all,
 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 this in bash, it returns 1, what happened? 
 
 				
--------------
ms2008vip
2013年06月30日

AltStyle によって変換されたページ (->オリジナル) /