Hacker News new | past | comments | ask | show | jobs | submit login

Maybe just me. I tried the command:

  ps aux | convert label:@- process.png
And got an image that was useless. Nothing readable.



Did you zoom in enough? On my system, it produces an image with pixel width of 11000 and file size of 3 MB, so the text appears too small when the default image viewer shows it at 12% zoom in order to make it fit within the available display size. Zooming in to show it at 100% zoom makes the text readable.

While this command works fine and is readable too at 100% zoom, I wonder why one would do this. Isn't copy-pasting the text output of 'ps aux' more convenient than creating a large image out of it that is not easy to read, filter, etc.?


I had better luck with the netpbm tools:

ps aux | pbmtext | pnmtopng > process.png


pretty sure it just puts the image of all the lines from the screen on top of each other, so it's pretty useless for me too. I've been trying to get this to work so I can automate screen grabs that are required for some audits we do.


Oh. Now I know what kind of one-liners he meant.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: