| View previous topic :: View next topic |
| Author |
Message |
trashmasterfx Voice
Joined: 29 Aug 2006 Posts: 8
|
Posted: Tue Aug 29, 2006 2:43 pm Post subject: Problem with eggdrop on shell command line |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue Aug 29, 2006 2:57 pm Post subject: |
|
|
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 |
|
 |
krimson Halfop

Joined: 19 Apr 2006 Posts: 86
|
Posted: Tue Aug 29, 2006 3:07 pm Post subject: |
|
|
or use backslash to escape the special char | Code: | | ./eggdrop -m \<trashbot.conf\> |
|
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Aug 29, 2006 6:45 pm Post subject: |
|
|
| 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 |
|
 |
trashmasterfx Voice
Joined: 29 Aug 2006 Posts: 8
|
Posted: Wed Aug 30, 2006 8:03 am Post subject: |
|
|
ah okay
i thought that a should put the conffile name in <> because ist was writen in the instroctions^^
greatz |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Wed Aug 30, 2006 8:54 am Post subject: |
|
|
Thought so
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 |
|
 |
|