11.07.2015 Views

NetEx EFT213 Reference Manual Rel 5.4

NetEx EFT213 Reference Manual Rel 5.4

NetEx EFT213 Reference Manual Rel 5.4

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

exceptionactionis any one of the following: ERRor, INTerrupt, LOCal_error, or REMote_error.is any <strong>NetEx</strong>/eFT command or alias.ExamplesThe following is a short <strong>NetEx</strong>/eFT script that immediately exits should any error occur:* Sample EFT script - this script* exits should any EFT error occur*on error exitset variable count 1LOOP:send file{count}set variable count {inc(count)}{le(count, 5, "goto LOOP")}*text All files sent.The exception being handled is ERRor and the action to be taken, should an error occur, is the <strong>NetEx</strong>/eFTcommand EXit.The following is a short <strong>NetEx</strong>/eFT script that immediately continues execution should any keyboard interruptoccur:* Sample EFT script - this script* continues should any keyboard interrupt* occur.*on interrupt continueset variable count 1LOOP:send file{count}set variable count {inc(count)}{le(count, 5, "goto LOOP")}*text All files sent.The exception being handled is INTerrupt and the action to be taken should a keyboard interrupt occur is the<strong>NetEx</strong>/eFT no-op command CONTinue.The following script issues a “loc directory” command with a file name as an argument. If the commandfails, implying the file does not exist, the ON LOCal_error action is to receive that file:* Sample EFT script** Setup ON LOCal_error, the action is to* receive 'file{count}'.*on LOCal_error {}receive file{count}set variable count 1LOOP:loc -quiet directory file{count}set variable count {inc(count)}{le(count, 5, "goto LOOP")}*exitREF-eFT213-R<strong>5.4</strong>-08 Command Descriptions Page 137

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!