gvegayon / parallel

PARALLEL: Stata module for parallel computing
https://rawgit.com/gvegayon/parallel/master/ado/parallel.html
MIT License
117 stars 26 forks source link

connection error -601- (timeout) when c(pwd) has spaces #47

Closed gvegayon closed 8 years ago

gvegayon commented 8 years ago

Expected behavior and actual behavior

When using parallel from a c(pwd) with spaces you get error r(601) (connection). It should be the case that having a c(pwd) with spaces doesn't matters.

Steps to reproduce the problem

clear all
set more off
set trace off

// Creating dir with space
!mkdir "spa ce"
cd "spa ce"

parallel setclusters 2
parallel, t(2): di 1 // connection error -601-

// To clean
cd ..
!rm -r "spa ce"

Please provide with code to reproduce the issue

System information

This happens in OSX and UNIX

This bug was referenced by Rebecca Nemec

gvegayon commented 8 years ago

The error is in _pll[pll id]_shell.sh. It seems to be a problem with Stata since Stata batch can't find the do-files while in the shell these are called using quotes (so spaces shouldn't matter). Fixing this issue in next push.