Customise post-transfer commands.
Customise post-transfer commands.This function sets a pair of commands to be executed after a successful or failed download respectively. Please uses this responsibly and with an eye open for security risks. The command will, of course, be executed by the bbs user, but be wary of untested rms, or commands with components that may be filled in by users.
This will affect any subsequent additions to the transfer queue, but not existing entries. Use this function before adding files to the queue and REMEMBER TO RESET IT AFTERWARDS if you'll be transferring other files from within the current module.
To disable a command execution, pass a NULL to the corresponding argument. To reiterate, if you use this function, you should call xfer_setcmd(NULL,NULL) immediately after calling xfer_run().