Ignore:
Timestamp:
09/23/09 10:43:20 (16 years ago)
Author:
Eric.Larour
Message:

Took out status, so that ssh would not hang when called from matlab.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/OS/issmssh.m

    r1582 r2279  
    2727                password=input('Password: (quoted string) ');
    2828
    29                 [status,result]=system([ISSM_DIR '/externalpackages/ssh/plink.exe -ssh -l "' username '" -pw "' password '" ' host ' "' command '"']);
    30 
    31                 if status,
    32                         error('issmssh error message: could not call putty plink');
    33                 end
     29                system([ISSM_DIR '/externalpackages/ssh/plink.exe -ssh -l "' username '" -pw "' password '" ' host ' "' command '"']);
    3430
    3531        else
    3632                %just use standard unix ssh
    37                 [status,result]=system(['ssh ' host ' ' command]);
    38                 if status,
    39                         error('issmssh error message: could not call ssh on *nix system');
    40                 end
     33                system(['ssh ' host ' ' command]);
    4134        end
    4235end
Note: See TracChangeset for help on using the changeset viewer.