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 

Problem with eggdrop on shell command line

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


Joined: 29 Aug 2006
Posts: 8

PostPosted: Tue Aug 29, 2006 2:43 pm    Post subject: Problem with eggdrop on shell command line Reply with quote

hi

does somebody know what this line meens : syntax error near unexpected token `newline' . this is shown when i try to start the bot on my shell with the command : ./eggdrop -m <trashbot.conf> .

what can i do to get the bot working

greatz
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Aug 29, 2006 2:57 pm    Post subject: Reply with quote

I'd suggest you remove the <>, as these are interpreted as io-redirectors by most shells...
Proper command-line would be:
Code:
./eggdrop -m trashbot.conf


Edit: Using these and similar characters are generally NOT advisable, as their use generally results in issues like these. If you've named your file with them, I would strongly advise you to rename the file to not include them.
_________________
NML_375, idling at #eggdrop@IrcNET


Last edited by nml375 on Tue Aug 29, 2006 3:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
krimson
Halfop


Joined: 19 Apr 2006
Posts: 86

PostPosted: Tue Aug 29, 2006 3:07 pm    Post subject: Reply with quote

or use backslash to escape the special char
Code:
./eggdrop -m \<trashbot.conf\>
Back to top
View user's profile Send private message Send e-mail
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Aug 29, 2006 6:45 pm    Post subject: Reply with quote

krimson wrote:
or use backslash to escape the special char
Code:
./eggdrop -m \<trashbot.conf\>

What the? You do not need to do that; and who would?

The user simply misinterpreted the instructions and did not realise the <>'s were to be replaced.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
trashmasterfx
Voice


Joined: 29 Aug 2006
Posts: 8

PostPosted: Wed Aug 30, 2006 8:03 am    Post subject: Reply with quote

ah okay

i thought that a should put the conffile name in <> because ist was writen in the instroctions^^

greatz
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Aug 30, 2006 8:54 am    Post subject: Reply with quote

Thought so Smile

A common practise is to indicate mandatory parameters by surrounding them with <>, optional parameters with [], and anything that's supposed to be written "as-is" without any characters around them.
This syntax is used in the documentation of eggdrop's extended tcl-commands (doc/tcl-commands.doc).

Side-note: Of course, these characters can be valid in a command-line (if say, pipe-redirections are desired). Generally, the documentation would make it somewhat obvious such is the case (tho there's always examples where this is not true aswell)
_________________
NML_375, idling at #eggdrop@IrcNET
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