About File Names

Both the exp_internal and log_file commands accept filename arguments that begin with a tilde (”~“). The tilde is interpreted as meaning “home directory” exactly the way it is defined by the C-shell. For example:

exp_internal -f ~fred/debuglog 0

This command saves diagnostic information to the file debuglog in fred’s home directory.

No other interpretation is given to the file name. If you include a wildcard such as a "*“, the file will be created with that name, exactly as you have specified. If you want wildcards expanded, use the glob command.

Get Exploring Expect now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.