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 

can't start invalid command name

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
RcTomcat
Voice


Joined: 03 Aug 2008
Posts: 5

PostPosted: Sun Aug 03, 2008 3:33 pm    Post subject: can't start invalid command name Reply with quote

Eggdrop v1.6.18 (C) 1997 Robey Pointer (C) 2006 Eggheads
[21:28] --- Loading eggdrop v1.6.18 (Sun Aug 3 2008)
[21:28] Tcl error in file 'eggdrop.conf':
[21:28] invalid command name "!"
while executing
"! /home/rctomcat/eggdrop1.6.18"
(file "eggdrop.conf" line 1)
[21:28] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)

how can i fix this error?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Aug 03, 2008 6:26 pm    Post subject: Reply with quote

Simple answer:
Don't remove the # on the first line..

Advanced answer:
#! is a "magic number", used by many systems to identify what kind of executable the file is. The #! specifies that the file isn't a binary itself, but a script which is to be executed by the program identified by the rest of the line. In the case of eggdrop configs, this should point to your eggdrop binary, and thus be
Quote:
#!/home/rctomcat/eggdrop1.6.18/eggdrop

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
RcTomcat
Voice


Joined: 03 Aug 2008
Posts: 5

PostPosted: Mon Aug 04, 2008 5:08 am    Post subject: Reply with quote

Thank you for your help but I still get the same error....
Even with the #!/home/rctomcat/eggdrop1.6.18/eggdrop

Now the error says
Eggdrop v1.6.18 (C) 1997 Robey Pointer (C) 2006 Eggheads
[21:28] --- Loading eggdrop v1.6.18 (Sun Aug 3 2008)
[21:28] Tcl error in file 'eggdrop.conf':
[21:28] invalid command name "#!/home/rctomcat/eggdrop1.6.18/eggdrop"
while executing
"#!/home/rctomcat/eggdrop1.6.18/eggdrop"
(file "eggdrop.conf" line 1)
[21:28] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Aug 04, 2008 8:33 am    Post subject: Reply with quote

Emm?
Tcl should treat # as a simple comment, and ignore the line completely.
You could just remove that line, as it will not prevent your eggdrop from working properly. You'll have to start your eggdrop using
Code:
./eggdrop eggdrop.conf
rather than using
Code:
./eggdrop.conf
Other than that, things should work just the same.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
RcTomcat
Voice


Joined: 03 Aug 2008
Posts: 5

PostPosted: Mon Aug 04, 2008 9:18 am    Post subject: Reply with quote

I deleted this line.....
but i still experience the problem with the #
Looks like tcl doesnt know what to do woth this symbol.

Where can i get a new tcl version?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Aug 04, 2008 9:52 am    Post subject: Reply with quote

That sounds very odd, and to be honest, I can't recall encountering anything like that before. If you wish to try some other tcl-library, you can download source packages from www.tcl.tk.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
RcTomcat
Voice


Joined: 03 Aug 2008
Posts: 5

PostPosted: Mon Aug 04, 2008 12:42 pm    Post subject: Reply with quote

thank you very much for your help.
I will try the other library.
It is a very weird error i get....
Well i keep you posted.
Thx
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 -> Eggdrop 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