🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Zhenya Gorokhovsky Fri, 02 Oct 1992 12:46
Running "write" from /exec
#93
Author: Zhenya Gorokhovsky
Date: Fri, 02 Oct 1992 12:46
23 lines
1496 bytes
I often want to do other tasks while I am logged in on IRC.
  On X-Terminal this is not a problem, but I am often use a dial-up
line. 
  What I want to do: put IRCII in background and then have notify
me whenever someone sends a /msg to me.
so I was trying to use 
/on msg bla-bla /exec echo Bla-bla is msging you|write gorokho1
   The result was that "write cannot find you tty", even though
I am piping output of echo to write. Same was happening 
when I wrote tiny sh-script and was trying to /exec it.
It is posible that I am displaying my ignorance and there are
easier ways to achieve what I am trying to accomplish, or that
I have no clue how /exec works, still I hope I will 
get a reasonable answer.
--
Zhenya Gorokhovsky
gorokho1@husc.harvard.edu

	Very little immediate tradition lies behind _Le Sacre du
	printemps_, however, and no theory.  I had only my ear to help
	me; I heard and I wrote what I heard.  I am the vessel through
	which _Le Sacre_ passed.
                                        - Igor Stravinsky
Re: Running "write" from /exec
#92
Author: Christopher Davis
Date: Fri, 02 Oct 1992 17:28
20 lines
1587 bytes
Zhenya> == Zhenya Gorokhovsky <gorokho1@husc10.harvard.edu> 

 Zhenya>   What I want to do: put IRCII in background and then have notify
 Zhenya> me whenever someone sends a /msg to me.
 Zhenya> so I was trying to use 
 Zhenya> /on msg bla-bla /exec echo Bla-bla is msging you|write gorokho1
 Zhenya>    The result was that "write cannot find you tty", even though

Your 'write' is probably looking for a tty to read from; since it's
being run from within IRC II, it doesn't have one.

How are you putting IRC II in background, anyway?  You might want to
look into "screen" instead, since it allows you to have multiple
sessions over a "normal" connection, and can notify you when there's new
text in another session.
--
Christopher K. Davis      |       NET.INSIGHTS INTO ARTISTIC CRITICISM:
<ckd@eff.org>   EFF #14   | ``[Y]ou don't cure bad art by locking it all up
System Administrator, EFF | in one museum, you cure it by throwing tomatoes
+1 617 864 0665  [CKD1]   | at bad artists.'' --Barry Shein <bzs@world.std.com>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads