This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

can't start invalid command name

General support and discussion of Eggdrop bots.
Post Reply
R
RcTomcat
Voice
Posts: 5
Joined: Sun Aug 03, 2008 11:07 am

can't start invalid command name

Post by RcTomcat »

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?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
#!/home/rctomcat/eggdrop1.6.18/eggdrop
NML_375
R
RcTomcat
Voice
Posts: 5
Joined: Sun Aug 03, 2008 11:07 am

Post by RcTomcat »

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)
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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: Select all

./eggdrop eggdrop.conf
rather than using

Code: Select all

./eggdrop.conf
Other than that, things should work just the same.
NML_375
R
RcTomcat
Voice
Posts: 5
Joined: Sun Aug 03, 2008 11:07 am

Post by RcTomcat »

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?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
R
RcTomcat
Voice
Posts: 5
Joined: Sun Aug 03, 2008 11:07 am

Post by RcTomcat »

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
Post Reply