Reputation: 123
I have a problem in init script.
reload_service() {
echo "####################### restart##################" > /dev/ttyS0
lua /root/proto.lua
lua /root/ft.lua
/etc/init.d/network reload
}
From that code, everything is fine, but I can't see the result of the two lua files(In those files, I put the print function. When i typed the lua command in command line, I can see the print function's result). In init script, can i use the lua command?
Upvotes: 0
Views: 885
Reputation: 328
You can use syslog for logging, print statement wont be visible in console. Or in place of print dump the logs in some file.
Upvotes: 0