News Score: Score the News, Sort the News, Rewrite the Headlines

Logging Shell Commands in BusyBox? Yes, You Can Now

In an earlier post, I showed how to log every shell command to a remote server using PROMPT_COMMAND in bash. It’s a neat trick, especially if you’re interested in session tracking, auditing, or just being a responsible sysadmin. But if you’re using BusyBox as your shell, and a lot of embedded systems and network devices do, you’ll quickly find out that this trick doesn’t work at all. So, what gives? Bash Has PROMPT_COMMAND, BusyBox Doesn’t If you’re used to bash, you know PROMPT_COMMAND is a han...

Read more at carminatialessandro.blogspot.com

© News Score  score the news, sort the news, rewrite the headlines