niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
adding '-t tty' to biff(1)/mesg(1)
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
Johan Karlsson
*nix forums beginner


Joined: 24 Apr 2002
Posts: 11

PostPosted: Tue Jul 23, 2002 6:52 pm    Post subject: adding '-t tty' to biff(1)/mesg(1) Reply with quote

Hi

Currently there is no way of changing the biff/mesg
status of a tty where another program is running.
(except if you know all the gory details about biff and mesg)

PR 13072 and 13073 suggest to add an option -t to specify
which tty to use.
http://www.FreeBSD.org/cgi/query-pr.cgi?pr=bin/13072
http://www.FreeBSD.org/cgi/query-pr.cgi?pr=bin/13073

I intend to commit this unless I get a good reason not to.

For those of you actually interested in reviewing the diff
it can be found at:
http://people.freebsd.org/~johan/tty.diff

Take care
/Johan
--
Johan Karlsson mailto:johan@FreeBSD.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Sheldon Hearn
*nix forums beginner


Joined: 03 May 2002
Posts: 34

PostPosted: Wed Jul 24, 2002 5:47 am    Post subject: Re: adding '-t tty' to biff(1)/mesg(1) Reply with quote

On (2002/07/23 22:52), Johan Karlsson wrote:

Quote:
Currently there is no way of changing the biff/mesg
status of a tty where another program is running.
(except if you know all the gory details about biff and mesg)

For mesg(1), you can use shell redirection to accomplish your goal,
as with tools like vidcontrol(1):

mesg y < /dev/ttyp7

This doesn't work for biff(1).

I'm not saying you shouldn't consider adding new options, but suggesting
that maybe the correct path forward is simply to fix biff(1) so that it
operates like other tools designed to change the behaviour of a
terminal.

Ciao,
Sheldon.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Johan Karlsson
*nix forums beginner


Joined: 24 Apr 2002
Posts: 11

PostPosted: Wed Jul 24, 2002 11:21 am    Post subject: Re: adding '-t tty' to biff(1)/mesg(1) Reply with quote

On Wed, Jul 24, 2002 at 09:47 (+0200) +0000, Sheldon Hearn wrote:
Quote:
For mesg(1), you can use shell redirection to accomplish your goal,
as with tools like vidcontrol(1):

mesg y < /dev/ttyp7

This doesn't work for biff(1).

You are absolutly correct.
This is a good enough reason for not committing my changes.
Instead I will teach biff(1) to work in this way.

Thanks for pointing this out.

/Johan

--
Johan Karlsson mailto:johan@FreeBSD.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Sheldon Hearn
*nix forums beginner


Joined: 03 May 2002
Posts: 34

PostPosted: Wed Jul 24, 2002 11:40 am    Post subject: Re: adding '-t tty' to biff(1)/mesg(1) Reply with quote

On (2002/07/24 15:21), Johan Karlsson wrote:

Quote:
For mesg(1), you can use shell redirection to accomplish your goal,
as with tools like vidcontrol(1):

mesg y < /dev/ttyp7

This doesn't work for biff(1).

You are absolutly correct.
This is a good enough reason for not committing my changes.
Instead I will teach biff(1) to work in this way.

Be aware that Robert Drehmel already has a patch for this, but has been
having trouble sending email. He told me this a few moments ago on IRC.

Ciao,
Sheldon.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Cyrille Lefevre
*nix forums beginner


Joined: 12 Jun 2002
Posts: 48

PostPosted: Wed Jul 24, 2002 12:48 pm    Post subject: Re: adding '-t tty' to biff(1)/mesg(1) Reply with quote

On Wed, Jul 24, 2002 at 09:47:30AM +0200, Sheldon Hearn wrote:
Quote:
On (2002/07/23 22:52), Johan Karlsson wrote:

Currently there is no way of changing the biff/mesg
status of a tty where another program is running.
(except if you know all the gory details about biff and mesg)

For mesg(1), you can use shell redirection to accomplish your goal,
as with tools like vidcontrol(1):

mesg y < /dev/ttyp7

This doesn't work for biff(1).

it works using :

biff n 2< /dev/ttyv3

see comments on PR #13073.

Cyrille.
--
Cyrille Lefevre mailto:cyrille.lefevre@laposte.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 3:43 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Adding 2 sets of roll/pitch/yaw angles Dan C 1 Thu Jul 20, 2006 9:32 pm
No new posts adding attribute to type with dependency emoracle Server 0 Tue Jul 18, 2006 11:18 am
No new posts "call to undefined function" mysql_error when adding new ... news@smutchin.co.uk PHP 3 Fri Jul 14, 2006 4:15 pm
No new posts Bug#368674: confirmed, fuse really needs a start of udev ... Junichi Uekawa devel 2 Sat Jul 08, 2006 4:30 pm
No new posts SAN Question, Adding new disks on the fly ChrisS Solaris 0 Thu Jul 06, 2006 9:33 pm

Mortgage insurance | Debt | Problem Mortgage | Mortgage | Bankruptcy
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3421s ][ Queries: 16 (0.2369s) ][ GZIP on - Debug on ]