Couldn't find any where to feature some requests so here we go:
A program called by {.exec}. should be able to return result to hfs
why? let me make an example:
the file rejetto.exe gets uploaded, hfs event script triggers and start:
exec|antivirus.bat {.localfile|path/to/file/in/got/uploaded/rejetto.exe.}
(see next suggestion for {.localfile.})
antivirus.bat:
virusscan.exe %1 > hfs.monitor
echo done
hfs monitors the hfs.monitor file for the text "done" (to know the virusscan.exe is done)
hfs now start a new script which check the hfs.monitor for a pattern (example: "the file %filename% is clean.")
if the pattern return
true it starts:
{.log|file %filename% is clean from viruses.}
(see below for {.log.})
if the pattern return
false it starts:
{.log|WARNING THE FILE %filename% IS INFECTED WITH A VIRUS!.}
{.set account|%person-who-uploaded-file%|disable-account.}
(see below for {.set account|disable-account.})
I find this useful
NOTE: this was only an example of what it could do, of course you write the scripts yourself, fully customizable
{.localfile.}
full path to the file, for example:
{.localfile|path/to/file/in/hfs/hi.txt.}
should return something like:
c:\windows\system32\hi.txt
{.log.}
Write log to the hfs log/console (maybe with a B parameter, from who)
{.log|rejetto rocks!!|JellyFrog.}
returns in the log (hfs.exe):
2008-12-29 13:37:00 JellyFrog rejetto rocks!!
{.set account|disable-account.}
disable an account (or delete maybe)
Now I need some sleep