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 get MemoScript to work.

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


Joined: 13 Nov 2009
Posts: 3

PostPosted: Tue Dec 01, 2009 3:08 pm    Post subject: Can't get MemoScript to work. Reply with quote

I tried setting up MemoScript, but I'm always getting this error, if i try to create a mailbox, it just says "Tcl error [eggmemo_new]: couldn't create error file for command: no such file or directory". Same when someone joins, but with "eggmemo_checkmsg" insted of "eggmemo_new". I looked up my scripts dir and created the wanted files(memo.userfile and memo.messages) but it still won't work. Oh, and I'm using Windrop on XP.

eggmemo_new is:
Code:
proc eggmemo_new {nick host hand text} {
    # new mailbox
    global memo_userfile

    set password [lindex $text 1]
    if {$password==""} {
   putserv "NOTICE $nick : Kein Passwort eingegeben";
    } else {
   if {[get $nick $memo_userfile] == ""} {
       add $nick $password $memo_userfile
   } else {
       putserv "NOTICE $nick : Deine Mailbox existiert bereits."
   }
    }
}
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Dec 01, 2009 3:22 pm    Post subject: Reply with quote

Short story, tcl is unable to create the proper environment for running an external application using the exec command. The shortfix is to alter the commandline to redirect the stderr channel to the stdout channel (using "2>@1" as the last option on the command line).

You could also see this thread with a similar issue.
_________________
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