TE_run_script_file

Alphabetical Listing

Runs a PowerTerm script.

int TE_run_script_file( const char *filename );
filename The name of a file containing a PowerTerm Script Language (PSL) script.

TE_run_script_file runs a PSL script file.

For details on PSL, see the online help available from the PowerTerm emulator Help menu.

Return Values

This function returns 0 if it succeeds, and a negative error code if it fails. It also sets the global variable TE_errno.

Parameterization

All string arguments (char type) can be parameterized using standard parameterization.

Example

In the following example, the TE_run_script_file function runs a logon script.

TE_run_script_file("c:\\logon.psl");
Where c:\logon.psl contains the following text
set hide-toolbar on
send "username<cr>"
send "password<cr>"
This will hide the emulator toolbar, and enter "username" and "password" followed by carriage returns.