Hi,

I am trying to run xclock job with slurm with help of sbatch. The following is 
my script:

#!/bin/sh
source /etc/profile
source $HOME/.bashrc

#SBATCH --job-name=display
#SBATCH --ntasks=1
#SBATCH --account=abc

cd /home/abc/test;
MACHINE_FILE=/home/abc/test/machinefile
/opt/slurm/bin/scontrol show hostname $SLURM_JOB_NODELIST &> $MACHINE_FILE
#export DISPLAY=localhost:11.0
xclock

Every time I have to change the port number  depending on the node I want to 
submit the job. How to configure it in a better way or is there a different way 
to run jobs with GUI with help of slurm.
What changes should I do with the script so that I don't have to change the 
port number every time. Should some changes be made to slurm.conf?


Thanks and regards,
Kritesh Arora

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com

Reply via email to