Bash script to find available display sever
Hi there,
Whenever I login to a server via ssh -X, I want that all 5 minutes a script displays a graph. The script shows the image via display (imagemagick). But what I'm not sure of is how to redirect the display output to my remote screen when this script is executed as a cron job. I can use display -display server but I don't know how to determine server via the script. Thanks, Ralf |
Greetingz!
If the server you're SSHing from is running the display, then you could have the script use the "who" command. Sample Output of "who" Code:
sysop@server(SunOS)$ who |
All times are GMT -5. The time now is 03:14 AM. |