The expect program accepts the following command-line options:
cmds
]
[[-f|-b]
cmdfile
] [--]
[args
]Display version number and exit.
Enable diagnostic output.
Enable interactive debugger if numeric argument n is non-zero.
Run in interactive mode.
Do not read the user’s startup file (˜/.expect.rc).
Do not read the global startup file ($exp_library/expect.rc).
cmds
Specify commands to be executed before starting script. The commands can be separated by semicolons. Multiple -c options can be specified.
Specify the file from which to read commands.
Same as -f, but read the input file one line at a time rather than in its entirety.
cmdfile
The file containing Tcl commands to execute. For standard input use “-”.
Denote the end of Expect options.
args
Additional arguments to pass to the Tcl program.
The expectk program accepts the following command-line options:
options
]
[cmdfile
]
[args
]Display version number and exit.
n
Enable interactive debugger if numeric argument
n
is non-zero.
Run in interactive mode.
cmds
Specify commands to be executed before starting script. The commands can be separated by semicolons. Multiple -command options can be specified.
Enable diagnostic output.
Do not read the user’s startup file (˜/.expect.rc).
Do not read the global startup file ($exp_library/expect.rc).
Specify the file from which to read commands.
Same as -file, but read the input file one line at a time rather than in its entirety.
cmdfile
The file containing Tcl commands to execute. For standard input use “-”.
args
Additional arguments to pass to the Tcl program.
Expectk also accepts any of the options supported by the wish program.