Changeset 2279 for issm/trunk/src/m/utils/OS/issmssh.m
- Timestamp:
- 09/23/09 10:43:20 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/OS/issmssh.m
r1582 r2279 27 27 password=input('Password: (quoted string) '); 28 28 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 '"']); 34 30 35 31 else 36 32 %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]); 41 34 end 42 35 end
Note:
See TracChangeset
for help on using the changeset viewer.