Changeset 2306


Ignore:
Timestamp:
09/24/09 10:44:57 (15 years ago)
Author:
Mathieu Morlighem
Message:

use symlink instead of copyfile if job is launched locally

Location:
issm/trunk/src/m
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/LaunchQueueJob.m

    r1268 r2306  
    1313end
    1414
    15 
    16 
    1715if exist(function_name,'file'),
    1816        %Call this function:
  • issm/trunk/src/m/utils/OS/scpout.m

    r1590 r2306  
    1313if strcmpi(host,hostname),
    1414        for i=1:numel(packages),
    15                 copyfile(packages{i},path);
     15                here=pwd;
     16                eval(['cd ' path])
     17                system(['rm -rf ' packages{i} ]);
     18                system(['ln -s ' here '/' packages{i} ' .']);
     19                eval(['cd ' here]);
    1620        end
    1721else
Note: See TracChangeset for help on using the changeset viewer.