my job as a sys admin requires that i telnet or ssh to a remote machine on a regular basis. however, sometimes, i also need a gui. (i get tired of hitting esc+3 all the time!)
so i created the two scripts below:
Xstart.sh is the xdmcp version of the scripts.
if you look at it, i have used $RANDOM. whats that for? well, instead of telling it to use display :1 coz :0 is busy, i m telling it to use $RANDOM. imagine if :1 is also busy or :2. ok, i took the lazy way out, so sue me! i use the scripts to logon to CDE on the AIX machines