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 |
Last active
Shell ouput to image
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 |