Hi, I'm quite new to TCL scripting, so I was wondering how easy/feasible it is to create a filesys script: that when someone DCCs the bot a file, the bot will put the file in /their-username/ folder underneath the filesys root? Are there any scripts like that out, or would I need to make one?
What I'm trying to do is have an arrangement where people can DCC the bot a file, then share it by putting it at http://the-bot-host/user's-folder/file.
Thanks. Sorry if this is like really elementary stuff here.
Check tcl-commands.doc for the RCVD bind. Your callback can use Tcl's "file rename" or "exec mv" to move the file into whatever directory you want. For the Tcl command reference, try http://tcl.activestate.com or http://dev.scriptics.com
Thank you, I'll do that.
Another question came up: Can you think of any major security risks from having Apache serve the bot's filesys directory (other than the fact that anyone can get the files, even if they aren't on the bot with +x)? I'm only doing this to get around a problem with sending DCC behind a packet filter, so it's not absolutely necessary.