egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using for example "egg" instead of "./egg

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Sat Dec 24, 2005 9:09 am    Post subject: Using for example "egg" instead of "./egg Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Dec 24, 2005 9:56 am    Post subject: Reply with quote

That piece of code is not enough for anyone to help you.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Sat Dec 24, 2005 10:12 am    Post subject: Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Dec 24, 2005 12:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Sat Dec 24, 2005 7:45 pm    Post subject: Reply with quote

worked fine! Thanks for the help! Smile
Merry Xmas
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber