1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] out of buffer?
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.esper.net?Subject=%5BIRCServices%5D%20out%20of%20buffer%3F&In-Reply-To=41f5e06b.06470%40achurch.org">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"004776.html">
11 <LINK REL=
"Next" HREF=
"004784.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices] out of buffer?
</H1>
15 <B>Torbj
örn Svensson
</B>
16 <A HREF=
"mailto:ircservices%40ircservices.esper.net?Subject=%5BIRCServices%5D%20out%20of%20buffer%3F&In-Reply-To=41f5e06b.06470%40achurch.org"
17 TITLE=
"[IRCServices] out of buffer?">azoff at se.linux.org
19 <I>Tue Jan
25 00:
05:
58 PST
2005</I>
21 <LI>Previous message:
<A HREF=
"004776.html">[IRCServices] out of buffer?
23 <LI>Next message:
<A HREF=
"004784.html">[IRCServices] out of buffer?
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#4779">[ date ]
</a>
27 <a href=
"thread.html#4779">[ thread ]
</a>
28 <a href=
"subject.html#4779">[ subject ]
</a>
29 <a href=
"author.html#4779">[ author ]
</a>
34 <PRE>-----BEGIN PGP SIGNED MESSAGE-----
38 |
<i> On second thought, Services always creates a lock file (.lock by
39 </I>|
<i> default) in the data directory while it's writing, and refuses to write
40 </I>|
<i> if the file exists, so you could do something like (in Perl):
42 </I>|
<i> sysopen LOCK,
"/.../.lock
", O_CREAT|O_EXCL,
0 or die
"locked\n
";
43 </I>|
<i> system(
"ircservices -export
");
45 </I>|
<i> unlink
"/.../.lock
";
47 Ahh, nice. Just the signal missing ;)
49 Also, if ircservices is started with -export it will generat some rows
50 in the log, here's an cut-n-paste of it:
51 [Jan
24 19:
04:
01 2005] IRC Services
5.0.44 starting up
52 [Jan
24 19:
04:
01 2005] Terminating, reason unknown
54 The reason shouldn't been 'unkown' ;)
57 ~ .''`. Torbj
örn Svensson, azoff (at) se (dot) linux (dot) org
58 ~ : :' :
7EB9
2DC5
61AE DAB5
7099 BAC6
798E E39A DBDB
0CFD
59 ~ `. `'
<A HREF=
"http://azoff.homeip.net">http://azoff.homeip.net
</A> |
<A HREF=
"http://azoff.tty0.org">http://azoff.tty0.org
</A>
60 ~ `--
<A HREF=
"http://www.se.linux.org">http://www.se.linux.org
</A>
62 -----BEGIN PGP SIGNATURE-----
63 Version: GnuPG v1.2
.6 (GNU/Linux)
64 Comment: Using GnuPG with Thunderbird -
<A HREF=
"http://enigmail.mozdev.org">http://enigmail.mozdev.org
</A>
66 iD8DBQFB9f3leY7jmtvbDP0RAgjLAKCAEAkNEw7nPQLpDNViTMtcbztrbwCeJOUd
67 ZRrNKsxF/+KE5X8nt8Ka7Q8=
69 -----END PGP SIGNATURE-----
77 <LI>Previous message:
<A HREF=
"004776.html">[IRCServices] out of buffer?
79 <LI>Next message:
<A HREF=
"004784.html">[IRCServices] out of buffer?
81 <LI> <B>Messages sorted by:
</B>
82 <a href=
"date.html#4779">[ date ]
</a>
83 <a href=
"thread.html#4779">[ thread ]
</a>
84 <a href=
"subject.html#4779">[ subject ]
</a>
85 <a href=
"author.html#4779">[ author ]
</a>