Is there a way to time out a Matlab command within a mfile, so that mfile execution resumes after a certain time spent on the Matlab command?
Background: Each day I automatically run a mfile which includes ftp of remote files. My company's FTP server sometimes has problems: the ftp command will connect but hang indefinitely yet no errors are returned, so I can't use try/catch. If our office manager restarts the FTP server manually (I don't have access) it fixes the ftp problem, but until then I want the mfile to complete since it does other useful things besides FTP. Ideally the mfile would kill the ftp command if more than 5 minutes have elapsed, then run the rest of the mfile. Any ideas how to do this? I want the mfile to work on different machines so prefer to avoid solutions based on installing new software, like new FTP clients.
댓글 수: 1
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/294229-how-to-time-out-a-matlab-command#comment_377942
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/294229-how-to-time-out-a-matlab-command#comment_377942
댓글을 달려면 로그인하십시오.