hi
i want to start pisg (the irc chan stats) per trigger from pub
this works:
set update_setting(flag) "S"
set update_setting(cmd) "!update"
set update_setting(exec) "/home/masterjm/pisg/pisg"
set update_setting(msg) "stats updated -> url"
bind pub $update_setting(flag) $update_setting(cmd) pub:update
proc pub:update {nick uhost hand chan text} {
global update_setting
puthelp "PRIVMSG $chan :[expr {[catch {exec $update_setting(exec)} error]?"$update_setting(exec) could not be executed ([string totitle $error]).":$update_setting(msg)}]"
}
this works
but i want to support more than one channel / pisg.cfg file
so i need this:
set update_setting(exec2) "/home/masterjm/pisg/pisg --configfile=/home/masterjm/pisg/2.cfg"
[for an other channel an other cfg file]
but with this setting the eggdrop dont run pisg
if i try it over irc pub trigger the eggdrop says:
/home/masterjm/pisg/pisg --configfile=/home/masterjm/pisg/2.cfg could not be executed (Couldn't execute "/home/masterjm/pisg/pisg --configfile=/home/masterjm/pisg/morfi.cfg": no such file or directory).
(but the file and the directory are fine - in bash of the shell this works!)
any ideas?
thx