Thank you for your info. Bokyoon
From: Douglas Jacobsen [mailto:[email protected]] Sent: Tuesday, June 20, 2017 3:19 PM To: slurm-dev <[email protected]> Subject: [slurm-dev] Re: ssh tunneling salloc <options> srun --pty -n1 -N1 --mem-per-cpu=0 --cpu_bind=none --mpi=none $SHELL will probably do what you want, i.e., get an allocation and start a shell on the remote node. ---- Doug Jacobsen, Ph.D. NERSC Computer Systems Engineer National Energy Research Scientific Computing Center <http://www.nersc.gov> <mailto:[email protected]> [email protected] ------------- __o ---------- _ '\<,_ ----------(_)/ (_)__________________________ On Tue, Jun 20, 2017 at 12:16 PM, Paul Hargrove <[email protected] <mailto:[email protected]> > wrote: The root problem is that "salloc" creates a subshell. Therefore your "srsh" command in "rsalloc && srsh" is not going to run until after the "rsalloc" subshell exits (at which point the allocation is released). -Paul On Tue, Jun 20, 2017 at 10:55 AM, 나보균 <[email protected] <mailto:[email protected]> > wrote: Hi all, I do not understand some commands related slurm. in a bash sell script, I put #!/bin/bash salloc -p remote_host_name -N 1 --gres=gpu:1 ssh -X `echo $SLURM_NODELIST` But this was not work. "salloc" did not work well. so I put them in my .bashrc file such as alias rsalloc="salloc -p romeo -N 1 --gres=gpu:1" alias srsh="ssh -X `echo $SLURM_NODELIST`" alias rshow="rsalloc && srsh" Then, as a aliased command "rsalloc" and "srsh" works fine but "rshow" did not work. What is wrong? Bokyoon -- Paul H. Hargrove [email protected] <mailto:[email protected]> Computer Languages & Systems Software (CLaSS) Group Computer Science Department Tel: +1-510-495-2352 <tel:(510)%20495-2352> Lawrence Berkeley National Laboratory Fax: +1-510-486-6900 <tel:(510)%20486-6900> _____ <http://www.avg.com/internet-security> ???대찓?쇱? AVG 諛붿씠?ъ뒪 諛깆떊 ?뚰봽?몄썾?대줈 諛붿씠?ъ뒪 寃€?ш? ?꾨즺?섏뿀?듬땲?? www.avg.com <http://www.avg.com/internet-security>
