What I would like to do is forward that information (Either by image, text or otherwise) to a 3rd party website (Our site, but not on the same network or server). This is so we can show clients the information without opening up our network.
While the information is constantly being updated, forwarding every 2-5 seconds is ok. It would be good if I could run it over SSH or from the terminal without X running (I don't have a mouse and it does need to be automatic).
I have tried imagemagick and scrot but they are having issues taking a screenshot of the display. imagemagick is just giving me a blank screen while scrot can't detect X running.
While it would be good to salvage the screenshot option, is there any other method that I should consider?
This is the script I have been using:
Code: Select all
#!/bin/bash
HOST=''
USER=''
PASSWD=''
while true
do
# import -display :0.0 -window root screen.png
scrot screen.png
ftp -n -v $HOST << EOT
binary
user $USER $PASSWD
prompt
put screen.png
bye
EOT
sleep 3
done