| View previous topic :: View next topic |
| Author |
Message |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Sat Dec 24, 2005 9:09 am Post subject: Using for example "egg" instead of "./egg |
|
|
My SP changed the way we run processes after an attac.
Now instead of ./ircstats we must do ircstats
or eggdrop instead of ./eggdrop
The problem is, how do I change my script line that does this:
| Code: | | eval exec $ircstatsexe $ircstatslog $ircstatscfg |
in order to run in this new manner?
Merry Xmas
Last edited by Thunderdome on Sat Dec 24, 2005 10:12 am; edited 1 time in total |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Dec 24, 2005 9:56 am Post subject: |
|
|
That piece of code is not enough for anyone to help you. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Sat Dec 24, 2005 10:12 am Post subject: |
|
|
| Code: | #set the full path to your ircstats executable
set ircstatsexe "/home/lol/IRCStats-1.0/ircstats"
#set the full path to your logfile
set ircstatslog "/home/lol/eggdrop/logs/thunderdome.log"
#set the full path to your ircstats cfg file
set ircstatscfg "/home/lol/IRCStats-1.0/ircstats.cfg"
#set the url for your statistics page
set ircstatsurl "http://lol.net/~lol/ircstats.html"
#change this at will: minutes hours days year
bind time - "07 * * * *" execution
bind time - "27 * * * *" execution
bind time - "47 * * * *" execution
#change n to whatever flag you wish (- for all users) and change !ircstats to whatever bind you wish to use
bind pub n !ircstats execution
proc execution {nick uhost hand chan arg} {
#### change the directory to your Ircstats main directory ####
cd /home/lol/IRCStats-1.0/
global ircstatsexe ircstatslog ircstatscfg ircstatsurl
eval exec $ircstatsexe $ircstatslog $ircstatscfg
append out "NOTICE $nick :" ; if {[catch {exec $ircstatsexe} error]} { append out "$ircstatsexe an error occured: [string totitle $error]" } else { append out "4,5Stats Updated:0,5 $ircstatsurl" }
puthelp $out
#### change the directory to your eggdrop main directory ####
cd /home/lol/eggdrop/ |
|
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Dec 24, 2005 12:42 pm Post subject: |
|
|
get rid of absolute paths and leave the name of executable only _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Sat Dec 24, 2005 7:45 pm Post subject: |
|
|
worked fine! Thanks for the help!
Merry Xmas |
|
| Back to top |
|
 |
|