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.

eFT> transferTransfer being made to what host? BLUESKYUser ID on host BLUESKY? guestPassword for user guest? _____File to be transferred? tmpfile***********************File 'tmpfile' has been transferred to BLUESKY.***********************eFT>Passing Parameters to a ScriptParameters may be passed to a <strong>NetEx</strong>/eFT script. These parameters are referred to as positional parametersbecause they are identified by their position on the command line. For example, the following INPUT commandpasses the input file SETUP three positional parameters, the first positional parameter is HOSTA, thesecond is SMITH, and the third is JOHN:eFT> input setup hosta smith johnAn input file can be passed several positional parameters. Each parameter is identified in the input file by itsposition number in braces ({1}, {2}, {3}, etc.). In the example above, HOSTA is represented by {1} in theinput script SETUP, SMITH is {2}, and JOHN is {3}. In general, the mapping is :{0} ... positional parameter zero - the entire parameter string{1} ... positional parameter one{2} ... positional parameter two...{n} ... positional parameter nPositional parameters are used with an input script using the syntax described above. For example, the fileSETUP may contain the three lines:text {3} {2} is attempting to connect to host {1}connect {1} {2} {3}text hello {3} {2}. How are you?When the INPUT command is issued, <strong>NetEx</strong>/eFT performs string substitution. After string substitution thecommand lines appear as:eFT> input setup hosta smith johntext john smith is attempting to connect to host hostaconnect hosta smith johntext hello john smith. How are you?To pass multiple words or strings with embedded blanks as a single parameter, enclose them in double quotes.Refer again to the example above. If the third parameter was JOHN HENRY instead of just JOHN, the stringJOHN HENRY would have to be enclosed in double quotes:eFT> input setup hosta smith "john henry"Now, parameter 1 is HOSTA, parameter 2 is SMITH, and parameter 3 is JOHN HENRY.Up to this point positional parameter passing and input prompting has been discussed. The next section combinesthese features by making use of string functions.Page 92 Advanced Local User’s Guide REF-eFT213-R<strong>5.4</strong>-08

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

Saved successfully!

Ooh no, something went wrong!