[torqueusers] no spaces in directory names

Garrick Staples garrick at usc.edu
Tue Feb 5 19:00:21 MST 2008


On Tue, Feb 05, 2008 at 03:09:57PM -0800, Garrick Staples alleged:
> On Tue, Feb 05, 2008 at 05:17:35PM -0500, Pete Wyckoff alleged:
> > Here's a cute little bug for somebody who is bored.
> > 
> > opt-login04$ cd ~/test
> > opt-login04$ mkdir "5000 atoms"
> > opt-login04$ cd "5000 atoms"
> > opt-login04$ echo hostname | qsub
> > 131148.opt-batch.osc.edu
> > 
> > Wait forever, no output file shows up.
> ...
> > 
> > Failed to expand destination path in data staging: /b/pw/test/5000 atoms/STDIN.o131148
> > Output retained on that host in: /var/spool/batch/torque/undelivered/131148.opt-.OU
> > 
> > Failed to expand destination path in data staging: /b/pw/test/5000 atoms/STDIN.e131148
> > Output retained on that host in: /var/spool/batch/torque/undelivered/131148.opt-.ER
> 
> The error makes sense.  Just like 'cat 5000 ./test/5000 atoms/foo' would fail.
> 
> We need to escape the space chars with a backslash.  I'm debating whether we do
> it in qsub, pbs_server, or pbs_mom.
> 
> Another possibility is to set $IFS to empty for the wordexp() calls, but I
> don't like that idea.

Turns out this is going to be very very difficult for all cases of initdir,
stdio output, and data staging.

I can get everything working when using local 'cp' (including $usecp-configured
network filesystems), but 'scp' really gets the quoting wrong.

Seems to me that the first 2 should work, and the rest should fail:
$ scp ./foo hpc-admin:/home/rcf-00/garrick/5000\ atoms/
scp: ambiguous target
$ scp ./foo 'hpc-admin:/home/rcf-00/garrick/5000 atoms/'
scp: ambiguous target

$ scp ./foo hpc-admin:/home/rcf-00/garrick/5000\\ atoms/
atoms/: No such file or directory
$ scp ./foo hpc-admin:/home/rcf-00/garrick/5000\\\ atoms/
foo                                                                          100%  857     0.8KB/s   00:00
$ scp ./foo 'hpc-admin:/home/rcf-00/garrick/5000\ atoms/'
foo                                                                          100%  857     0.8KB/s   00:00



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20080205/f219d097/attachment.bin


More information about the torqueusers mailing list