| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Htick and ExecOnFile |
Hello Kaare!
Mandag 18. April 2005 20:55, you wrote to All:
KO> How does Htick's ExecOnFile work? I have the documentation, but it
KO> doesn't reveal everything I need to know.
KO> Upon reception of any file in any file area I'd like to run a script
KO> that needs the complete path+filename of the received file. I've
KO> tried the following to no avail:
KO> ExecOnFile * * /path/to/script/script
KO> Can't the filearea (the first *) be a wildcard, or is my script not
KO> called with the path+filename of the received file?
I dom't think so .. I'm using a tosser script which only runs on new files
recieved so you may just should run your script afterwoods
=== Cut ===
#!/bin/sh
# script for tossing mail by sisoft\trg'2002
# $Id: tossing,v 1.4 2004/02/11 12:44:03 sisoft Exp $
cd /home/ftn
# fileecho
find /home/ftn/spool/unsecure/*.[pP][kK][tT] >/dev/null 2>&1 &&
touch /tmp/do_toss
find /home/ftn/spool/secure/*.[pP][kK][tT] >/dev/null 2>&1 &&
touch /tmp/do_toss
# fileecho
find /home/ftn/spool/secure/*.[tT][iI][cC] >/dev/null 2>&1 &&
/home/ftn/prog/bin/htick -q toss
^^^^
# echomail
find /home/ftn/spool/secure/*.[sSmMtTwWfF][aAuUoOeEhHrR][0-z] >/dev/null
2>&1 &&
touch /tmp/do_toss
find /home/ftn/spool/unsecure/*.[sSmMtTwWfF][aAuUoOeEhHrR][0-z]
>/dev/null 2>&1 &&
touch /tmp/do_toss
if [ -e /tmp/do_toss ]; then
/home/ftn/prog/bin/hpt -q toss link
/home/ftn/prog/bin/ftrack > /dev/null
rm /tmp/do_toss
touch /home/ftn/lib/flags/scanall.now
fi
=== Cut ===
Bo
... Privet or pervert?
--- GoldED+/LNX 1.1.5
* Origin: The Night Express - Odense, Dk (2:236/100)SEEN-BY: 633/267 270 @PATH: 236/100 237/9 20/11 2411/413 2432/200 2476/418 140/1 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.