B.4.2 log

This command opens or closes a log file.

xsel >  log <log file>

where $<$log file$>$ is the name of the file to be opened (default extension is .log). If no arguments are on the line, then the default file name is xselect.log. If $<$log file$>$ matches the string “none” then the current log file is closed. The log contains a complete dump of the session – to just get the commands (for a macro, for example) use the script command.

Examples:

xsel >  log andy

will start logging commands in andy.log

Example 2:

xsel >  log none

will turn off the logging.

Xselect will log all the output it generates, as well as the output that is generated by the spawned Ftools.