Since I've been in a world of hurt with FreeNX attempting to get shadowing to work, I stumbled across a brief description describing starting vnc sessions through an SGE job (our firewall rules would require ssh tunneling, so I'm not too concerned about the security implication of VNC itself).
My question is: Would it be possible to set an idle expire time (or possibly a simple hardset timer Ex. 24 hrs) on new sessions created by a submitted VNC SGE job?
I'm also not sure what the correct SGE script syntax would be to launch a VNC session on a particular node.
You can set a time limit on jobs submitted to a queue. When you create / edit the queue there's an option for the
h_rt
resource that will set the hard limit on the walltime resource. Setting this to 24:00:00 will cause the jobs submitted to that queue to be terminated after 24 hours.If you want to be able to submit jobs to a particular node, you can just specify the
hostname
resource in your job submission. Eg:qsub -l hostname=somehost