Live data from Hacker News

Using htop to generate a live website background

drunken-security.at

61–63 of 63 posts

Re: Using htop to generate a live website background

#62
post #6

Earlier quoted context omitted.

Even though some software does replace the password, it would be better not to use passwords like that at all anyway. Just to be sure.

Good point. I think we should be caeful what we do, while administrating the server. Maybe we could build some automatism which stops the screenshot service while an ssh session is established.

Either that, or you just exclude all processes forked by bash/ssh :-)

Re: Using htop to generate a live website background

#63

Earlier quoted context omitted.

Is there any good reason not to use an ordinary pipe there? In zsh, strace blah |& read sid

Well they could use an ordinary pipe, but they would have to group the later expression in parantheses. In bash the | creates a fork, so if you try: echo "sdfsdf" | read sid && echo $sid you get a blank line, but if you try: echo "sdfsdf" | (read sid && echo $sid) you get "sdfsdf" |& is an abbreviation for >2&1 | . In zsh the grouping isn't needed, the expression works out of the box. For more information on the subj…

Hmm... looks like zsh runs the last element of the pipeline, if a builtin, in the current process. I use the pipe-to-read trick all the time in zsh without even thinking about it.
Post reply on HN