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.

Search found 27 matches

by Massacre
Thu Jan 22, 2004 8:17 am
Forum: Archive
Topic: Checking if pipe is still open
Replies: 9
Views: 2296

Even on non-blocking mode it still hangs and uses 100% cpu when the java prog is dead :(
by Massacre
Thu Jan 22, 2004 7:48 am
Forum: Archive
Topic: Checking if pipe is still open
Replies: 9
Views: 2296

I'm trying to test for the java prog exiting unexpetidly cause what happens is, the java prog dies then @ the next call to gets it's probably reading -1 or something and it hangs, cpu hits 100% and has to be killed. Is the only way round this to build my own gets proc and reload the java prog when i...
by Massacre
Wed Jan 21, 2004 9:43 am
Forum: Archive
Topic: Checking if pipe is still open
Replies: 9
Views: 2296

Ha, ok, so it should be "pid $pipe" not [pid $pipe] and it works now but it still returns the PID even if the stream is closed, so does anyone know a working method please?
by Massacre
Wed Jan 21, 2004 6:53 am
Forum: Archive
Topic: Checking if pipe is still open
Replies: 9
Views: 2296

hmmz, ok no i didn't, the problem still stands, cause catch is always returning 1.
by Massacre
Wed Jan 21, 2004 6:48 am
Forum: Archive
Topic: Checking if pipe is still open
Replies: 9
Views: 2296

Ok, i've fixed this now by doing the following check:

Code: Select all

 [catch [pid $pipe]] != "0"
If it's != "0" then there was an err (eg, $pipe doesn't exist anymore) and I can restart the java prog.
by Massacre
Wed Jan 21, 2004 5:53 am
Forum: Archive
Topic: start a process on startup
Replies: 4
Views: 1394

I think if you just put the init code straight into a tcl script file, not in a proc then it will be run when the script is loaded, which it will be when the bot is started.
by Massacre
Wed Jan 21, 2004 5:43 am
Forum: Archive
Topic: Checking if pipe is still open
Replies: 9
Views: 2296

Checking if pipe is still open

Is there a way I can check whether the pipe to my java prog is still open?
by Massacre
Thu May 01, 2003 12:58 pm
Forum: Archive
Topic: Permanent Owner???
Replies: 5
Views: 1509

Yeah, it wants your "handle", your username basically. When you msg it saying hello it says something like "I will know u as..." and the bit after as is ur handle unless you change it. I didn't realise you needed that in the config file.
by Massacre
Fri Apr 25, 2003 7:49 am
Forum: Archive
Topic: Permanent Owner???
Replies: 5
Views: 1509

k, i take it ur talking about "set owner <owner>"? I'll set that to my handle right? I'll try it anyway :p
by Massacre
Fri Apr 25, 2003 7:32 am
Forum: Archive
Topic: Permanent Owner???
Replies: 5
Views: 1509

Permanent Owner???

.chanset #ms.ut.priv need-key ##### Due to security concerns, only permanent owners can set these modes. I am the only person in the bots user file, apart from Q and L who have can-flood flags. I was the first to say hello etc... why am I not a permanent and what is a permanent owner? It's not asif ...
by Massacre
Sat Apr 05, 2003 3:45 am
Forum: Archive
Topic: String comparison
Replies: 10
Views: 2643

:s well i just tried: if {[string match -nocase $channel "#\[ms\]"]} { putquick "PRIVMSG $channel :Test(1)" } if {[string match -nocase $channel "#\[ms]"]} { putquick "PRIVMSG $channel :Test(2)" } and neither appeared in the channel. :/ The compare thing works...
by Massacre
Sat Apr 05, 2003 3:19 am
Forum: Archive
Topic: String comparison
Replies: 10
Views: 2643

Isn't "#\[ms\]" excaping the []?
by Massacre
Fri Apr 04, 2003 6:21 pm
Forum: Archive
Topic: String comparison
Replies: 10
Views: 2643

Doesn't escaping (eg, '\[') get round that? And if not, do you or anyone else know how i can get round it?
by Massacre
Fri Apr 04, 2003 5:40 pm
Forum: Archive
Topic: String comparison
Replies: 10
Views: 2643

i've tried it with other channels there too, but it only failes on #[ms] :/
by Massacre
Fri Apr 04, 2003 5:39 pm
Forum: Archive
Topic: String comparison
Replies: 10
Views: 2643

String comparison

I just don't get it. I've spent the best part of 2 hours fiddling with this and I just can't see why it's not working. If I join our clan channel, #[ms], the following, which is in a proc that's bound to 'join' (and i know it works), results in false if {[string match -nocase $channel "#\[ms\]&...