Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
9fdc7a65
Commit
9fdc7a65
authored
Feb 01, 2011
by
Marco Ratto
Browse files
capture system command for mkdir also for linux
parent
76644861
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/parallel/dynareParallelMkDir.m
View file @
9fdc7a65
...
...
@@ -37,7 +37,7 @@ end
for
indPC
=
1
:
length
(
Parallel
)
if
Parallel
(
indPC
)
.
Local
==
0
,
if
~
ispc
,
%isunix || (~matlab_ver_less_than('7.4') && ismac),
system
([
'ssh '
,
Parallel
(
indPC
)
.
UserName
,
'@'
,
Parallel
(
indPC
)
.
ComputerName
,
' mkdir -p '
,
Parallel
(
indPC
)
.
RemoteDirectory
,
'/'
,
PRCDir
]);
[
NonServeS
NonServeD
]
=
system
([
'ssh '
,
Parallel
(
indPC
)
.
UserName
,
'@'
,
Parallel
(
indPC
)
.
ComputerName
,
' mkdir -p '
,
Parallel
(
indPC
)
.
RemoteDirectory
,
'/'
,
PRCDir
]);
else
[
NonServeS
NonServeD
]
=
mkdir
([
'\\'
,
Parallel
(
indPC
)
.
ComputerName
,
'\'
,
Parallel
(
indPC
)
.
RemoteDrive
,
'$\'
,
Parallel
(
indPC
)
.
RemoteDirectory
,
'\'
,
PRCDir
]);
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment