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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

* Echo all commands as they execute*set input echo onThis command can be issued interactively, prior to the INPUT command, or given as the first command in theinput file. INPUT ECHO will echo each command as it appears prior to string substitution. To display eachinput command after string substitution, turn on the INPUT VERIFY qualifier as:* Echo all commands after string substitution*set input verify onRefer to the INPUT command in “Command Descriptions” for more details on these qualifiers. The section“Debugging a <strong>NetEx</strong>/eFT Alias or Input Script” on page 101 also addresses the VERIFY qualifier.Displaying Output and Accepting Input within a ScriptThe TEXT command is used to display output within a <strong>NetEx</strong>/eFT session. For example, the commands in ascript to display a welcome message to a user could be:text *********************************text Welcome to EFT!text *********************************A TEXT string can also include <strong>NetEx</strong>/eFT string substitution syntax {...}. Therefore, string literals, stringvariables, or string functions can be substituted within a TEXT command line to provide additional information.For example, to enhance the example above, the string function DATE() could be used, along withqualifier values VERSION and DIRECTORY from the LOCAL environment:text ******************************************************text Welcome to EFT Version {version:local}.texttext{date()}.texttext Your current directory is: {directory:local}.text ******************************************************The ASK command can be used to make scripts more friendly for novice users. For example, a TRANSFERscript could be defined that would prompt a user for worthwhile information then execute the commands onthe user’s behalf:* This is a sample TRANSFER script*ask -prompt "Transfer being made to what host? " hostask -prompt "User ID on host {host}? " uidask -secure -prompt "Password for user {uid}? " pwask -prompt "File to be transferred? " fileconnect -quiet {host} {uid} {pw}send -quiet {file}text ***********************text File '{file}' has been transferred to {host}.text ***********************disconnect -quietTo execute the script (if appropriate setup was done by the site administrator), the user would type onlyTRANSFER:REF-eFT213-R<strong>5.4</strong>-08 Advanced Local User’s Guide Page 91

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

Saved successfully!

Ooh no, something went wrong!