[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Lua / shell - How to "pipe" commands in os.execute() ?
- From: luc1an0 <luc1an0@...>
- Date: Wed, 04 Apr 2007 11:37:20 +0200
My question can be very stupid, but I want to execute some shell
commands with a pipe ( | ) like that :
os.execute(ps aux | grep my_program) or a generic way :
os.execute("my_command" "my_args" | another_command | ....)
And another simply question : How to don't return exit code if function
even return string, for example
io.write(os.execute("pwd")) return this
Thanks a lot.