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 

config.conf error line 1 [solved]

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


Joined: 14 Jan 2006
Posts: 63

PostPosted: Sat Dec 11, 2010 2:59 pm    Post subject: config.conf error line 1 [solved] Reply with quote

A stupid question:"Which is the correct syntax to define the eggdrop path?"

Last edited by Cr4sh on Mon Dec 13, 2010 2:10 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Dec 11, 2010 3:23 pm    Post subject: Reply with quote

If you're referring to the line saying something like this:
Code:
#! /path/to/eggdrop

Then it's the "magic number" for scripts (aka "shebang"), which tells the shell (bash, etc) which binary to start this script with. Thus, this is only needed if you'd like to be able to start your eggdrop with a command such as this:
Code:
# ./eggdrop.conf

It's not needed to start your eggdrop the "normal" way:
Code:
# ./eggdrop eggdrop.conf


The proper value though?
Lets say we've installed your eggdrop binary in the folder "eggie" under our home ("/home/me"); then this would be set to:
Code:
#! /home/me/eggie/eggdrop

Keep in mind, that many shells have a limit of 32 characters including the #! prefix, so if you've got a long path to the installation, this might not even be an option for you..

Oh, and no, this will not work with windrops..
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Cr4sh
Halfop


Joined: 14 Jan 2006
Posts: 63

PostPosted: Sat Dec 11, 2010 3:31 pm    Post subject: Reply with quote

In any case i received
Code:
$ ./eggdrop -m config.conf

Eggdrop v1.6.19 (C) 1997 Robey Pointer (C) 2008 Eggheads
[20:27] --- Loading eggdrop v1.6.19 (Sat Dec 11 2010)
[20:27] Tcl error in file 'config.conf':
[20:27] invalid command name "#!"
    while executing
"#! /home/cr4sh/eggdrop"
    (file "config.conf" line 1)
[20:27] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Dec 11, 2010 3:35 pm    Post subject: Reply with quote

That is odd, anything starting with a hash (#) should be treated as a comment in tcl. Try completely removing that line
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Cr4sh
Halfop


Joined: 14 Jan 2006
Posts: 63

PostPosted: Sat Dec 11, 2010 3:39 pm    Post subject: Reply with quote

a new error message
Code:
$ ./eggdrop config.conf

Eggdrop v1.6.19 (C) 1997 Robey Pointer (C) 2008 Eggheads
[20:37] --- Loading eggdrop v1.6.19 (Sat Dec 11 2010)
[20:37] Tcl error in file 'config.conf':
[20:37] invalid command name "#"
    while executing
"# ^- This should contain a fully qualified path to your Eggdrop executable."
    (file "config.conf" line 1)
[20:37] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Dec 11, 2010 3:46 pm    Post subject: Reply with quote

Then it would seem you've got a bad tcl interpreter. Did you use the gentoo package for installing tcl?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Cr4sh
Halfop


Joined: 14 Jan 2006
Posts: 63

PostPosted: Sat Dec 11, 2010 3:48 pm    Post subject: Reply with quote

Yes, i've emerge tcl directly from portage package.
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Dec 11, 2010 4:02 pm    Post subject: Reply with quote

That... is very odd.
I suppose you could try and manually build and install tcl from www.tcl.tk, and then rebuild your eggdrop against this..

Also, you could try starting "tclsh" (a tcl shell interpreter), and try to run a simple script within it such as below:
Code:
puts stdout "Starting up... next comes a comment..."
# This is the first comment..
#This is the second one...
puts stdout "If you see this, just below the \"Starting up\" line, comments seem to work as intended"

put it in a text file, and start it like this:
tclsh yourscript.tcl
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Cr4sh
Halfop


Joined: 14 Jan 2006
Posts: 63

PostPosted: Sat Dec 11, 2010 4:18 pm    Post subject: Reply with quote

And the result is
Code:
H4ckmaniac Desktop # tclsh try.tcl
Starting up... next comes a comment...
If you see this, just below the "Starting up" line, comments seem to work as intended
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Dec 11, 2010 5:09 pm    Post subject: Reply with quote

Unfortunately, I'm running very low on ideas.. eggdrop simply passes the filename of the config-file to "Tcl_EvalFile", just like loading it with tclsh..
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Cr4sh
Halfop


Joined: 14 Jan 2006
Posts: 63

PostPosted: Sun Dec 12, 2010 5:00 am    Post subject: Reply with quote

Thanks man, it's not a problem, in any way i will resolve this question. Wink

Portage, has just a packet "net-irc/eggdrop" to the 3.6.19 that works perfectly
Back to top
View user's profile Send private message Visit poster's website
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