[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Not so IGLU related question..
Hi, guy!
On Wed, May 03, 2000 at 01:47:33AM +0300, you wrote the following:
> > I use PINE, and it lets youuse the output of a program, so I do just
> > that. however with netscape it looks for a static file (won't take a URL
> > or a piped output), so your last resort is to set a cronjob to change
> > your sig once in a while, or forget the silly feature (or move to pine
> > :)
>
> to that - here is an idea: instead of a static file, use a named pipe
> (created using 'mknod'), and have a program that writes out 'fortune's
> data' to that named pipe. this will most likely work.
>
> if someone wants to try this out, you may find a program that writes into
> named pipes on my IPC tutorial, at
> http://www.actcom.co.il/~choo/lupg/multi-process/multi-process.html , look
> under the 'named pipes' section, and read through the 'compleet example'.
>
> the idea is to change the program so instead of writing by itself into the
> named pipe - it will launch 'fortune', not before redirecting its standard
> output into the named pipe (man dup and/or man dup2 forperforming the
> redirection, and read about using fork and exec, for lanching furtunre).
>
> after you have the program done, you simply need to have it running always
> before you launch netscape (or at least, before you send email).
>
> if anyone attempts to write this out - let me know how it worked, and if
> you encountered any interesting problems.
Oh dear... here it is:
mkfifo .signature
(while true; do fortune > .signature; done) &
--
Alex Shnitman | http://www.debian.org
alexsh@hectic.net, alexsh@linux.org.il +-----------------------
http://alexsh.hectic.net UIN 188956 PGP key on web page
E1 F2 7B 6C A0 31 80 28 63 B8 02 BA 65 C7 8B BA
I previously had IE4/NT4 on the same box and by comparison the combination
of Linux / Navigator ran at least 30-40% faster when rendering simple
HTML + graphics.
-- Internal Microsoft memo
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il