#!/bin/bash #PBS -l select=1:ncpus=4 #PBS -q serial #PBS -l walltime=2:00:00 #PBS -P MECH1234 #PBS -o $HOME/vncsession.out #PBS -e $HOME/vncsession.err #PBS -m abe #PBS -M justsomeuser@gmail.com ### This following line will write the hostname of your compute node to the file hostname.txt hostname > hostname.txt /apps/chpc/compmech/TurboVNC-2.2.5/bin/vncserver :1 -depth 24 -geometry 1600x900 sleep 2h /apps/chpc/compmech/TurboVNC-2.2.5/bin/vncserver -kill :1