Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dóra Kocsis
dynare
Commits
76644861
Commit
76644861
authored
Feb 1, 2011
by
Marco Ratto
Browse files
Options
Downloads
Patches
Plain Diff
Provisions for octave under linux + small cosmethics.
parent
90503684
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/parallel/dynareParallelDir.m
+30
-11
30 additions, 11 deletions
matlab/parallel/dynareParallelDir.m
with
30 additions
and
11 deletions
matlab/parallel/dynareParallelDir.m
+
30
−
11
View file @
76644861
...
...
@@ -31,7 +31,25 @@ dirlist=[];
for
indPC
=
1
:
length
(
Parallel
),
if
~
ispc
,
%isunix || (~matlab_ver_less_than('7.4') && ismac),
if
Parallel
(
indPC
)
.
Local
==
0
,
if
exist
(
'OCTAVE_VERSION'
)
% Patch for peculiar behaviour of ssh-ls under Linux.
% It is necessary to capture the ls warning message.
% To do it under the ssh protocol it is necessary to redirect the ls message in a text file.
% The file is 'OctaveStandardOutputMessage.txt' and it is
% saved in the Model directory.
[
check
,
ax
]
=
system
([
'ssh '
,
Parallel
(
indPC
)
.
UserName
,
'@'
,
Parallel
(
indPC
)
.
ComputerName
,
' ls '
,
Parallel
(
indPC
)
.
RemoteDirectory
,
'/'
,
PRCDir
,
'/'
,
filename
,
' 2> OctaveStandardOutputMessage.txt'
]);
else
[
check
,
ax
]
=
system
([
'ssh '
,
Parallel
(
indPC
)
.
UserName
,
'@'
,
Parallel
(
indPC
)
.
ComputerName
,
' ls '
,
Parallel
(
indPC
)
.
RemoteDirectory
,
'/'
,
PRCDir
,
'/'
,
filename
]);
end
if
check
~
0
;
ax
=
[];
end
else
if
exist
(
'OCTAVE_VERSION'
)
% Patch for peculiar behaviour of ls under Linux.
% It is necessary to capture the ls warning message and properly manage the jolly char '*'!
[
check
ax
]
=
system
([
'ls '
,
filename
,
' 2> OctaveStandardOutputMessage.txt'
]);
if
check
~
0
;
ax
=
[];
end
...
...
@@ -41,11 +59,12 @@ for indPC=1:length(Parallel),
catch
ax
=
[];
end
end
end
dirlist
=
[
dirlist
,
ax
];
else
if
exist
(
'OCTAVE_VERSION'
),
%
p
atch for peculiar behaviour of ls under Windows
if
exist
(
'OCTAVE_VERSION'
),
%
P
atch for peculiar behaviour of ls under Windows
.
if
Parallel
(
indPC
)
.
Local
==
0
,
ax0
=
dir
([
'\\'
,
Parallel
(
indPC
)
.
ComputerName
,
'\'
,
Parallel
(
indPC
)
.
RemoteDrive
,
'$\'
,
Parallel
(
indPC
)
.
RemoteDirectory
,
'\'
,
PRCDir
,
'\'
,
filename
]);
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment