Last active 1705433080

Shell ouput to image

Jarno Rankinen revised this gist 1666124577. Go to revision

1 file changed, 3 insertions

sh2img.sh(file created)

@@ -0,0 +1,3 @@
1 + CMD_TO_RUN='ip a'
2 + OUTPUTFILE='/tmp/output.png'
3 + $CMD_TO_RUN | convert -font /usr/share/fonts/dejavu/DejaVuSansMono.ttf -channel RGB -negate label:@- $OUTPUTFILE
Newer Older