Re: not able to output anything to /dev/ttyv8?
Along those same lines, I'd like to output iftop to ttyv0 (main console) with login across serial and/or another tty. I get rate limit errors of some sort when I edit /etc/ttys. What method should I use to ouput an application such as iftop to a tty? TIA Eric Crist On 6/6/07, Zhang Weiwu <[EMAIL PROTECTED]> wrote: On Wed, 2007-06-06 at 09:31 -0500, Jonathan Horne wrote: > Im not sure what your application may be, but my simple solution is > just to > 'tail -f /path/logfile'. This way, I can see the output of my > application > from anywhere I am via ssh (not just the local tty). Year, sure, right! I have been using your method for months! I start to thinking of piping result to a tty because the box running this app is not far away and I just think it's fun and looking nice to have it poping up progress :) As you said, this is not very very necessary, it's mostly for fun and a little bit easier for me -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to " [EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: not able to output anything to /dev/ttyv8?
On Wed, 2007-06-06 at 09:31 -0500, Jonathan Horne wrote: > Im not sure what your application may be, but my simple solution is > just to > 'tail -f /path/logfile'. This way, I can see the output of my > application > from anywhere I am via ssh (not just the local tty). Year, sure, right! I have been using your method for months! I start to thinking of piping result to a tty because the box running this app is not far away and I just think it's fun and looking nice to have it poping up progress :) As you said, this is not very very necessary, it's mostly for fun and a little bit easier for me -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: not able to output anything to /dev/ttyv8?
On 6/6/07 9:17 AM, "Zhang Weiwu" <[EMAIL PROTECTED]> wrote: > On Wed, 2007-06-06 at 03:14 -0400, Michael Hauber wrote: >> On Tuesday 05 June 2007 11:23:04 pm Zhang Weiwu wrote: >>> Dear list >>> >>> On Gentoo Linux I used to redirect the output of a certain app >>> to /dev/tty10 and switch to tty10 (by using Alt+F10) >>> >>> this is useful to keep watching the application. >>> >>> this doesn't work on FreeBSD. I can do >>> # ehco hello > /dev/ttyv8 >>> # ehco hello > /dev/ttyv9 >>> # ehco hello > /dev/ttyva >>> >>> But Alt+F9, Alt+F10, Alt+F11 only cause the machine to beep >>> >>> Possible to use /dev/ttyv9 for output device in FreeBSD? Thanks in >>> advance. >>> >>> Best regards >> >> try 'man ttys' and edit your /etc/ttys. > > It doesn't make me nervous when I have to RTFM as I did many times and, > now I am RTFMing, but, I got a feeling I am entering a "maze" filled > with things I don't know: termcap, bound rate... > > Anyway this is how I did it after RTFM, stupid but works: > 1) go to /etc/gettytab and add this: > > W|Wd|Wd console:\ > :ht:np:al=root:sp#9600: > > 2) run /usr/libexec/getty Wd ttyv8 > > 3) now you can run your application and redirect to ttyv8 > > # app > /dev/ttyv8 > > This is ugly, but it works. I'd very like to see better solutions. > > If you don't add that line to /etc/gettytab, run > > /usr/libexec/getty Pc ttyv8 > > will get you a ttyv8 console that you can redirect output to, but that > console seems ignore carrier return / line feed, making the output > difficult to read. > > P.S. I'd very much like the console ttyv8 can be at a speed of 9600, now > it output anything almost instantly, so sometimes I cannot watch the > output scroll with my eyes (by the special nature of the application I > am running, glance over the output of my application when I am free can > help me find a lot of useful information). The application produce less > then 20MB of data, so 9600 kbps is a good measure to control the pace of > output. > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" Im not sure what your application may be, but my simple solution is just to 'tail -f /path/logfile'. This way, I can see the output of my application from anywhere I am via ssh (not just the local tty). -- Jonathan Horne [EMAIL PROTECTED] http://dfwlpiki.dfwlp.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: not able to output anything to /dev/ttyv8?
On Wed, 2007-06-06 at 03:14 -0400, Michael Hauber wrote: > On Tuesday 05 June 2007 11:23:04 pm Zhang Weiwu wrote: > > Dear list > > > > On Gentoo Linux I used to redirect the output of a certain app > > to /dev/tty10 and switch to tty10 (by using Alt+F10) > > > > this is useful to keep watching the application. > > > > this doesn't work on FreeBSD. I can do > > # ehco hello > /dev/ttyv8 > > # ehco hello > /dev/ttyv9 > > # ehco hello > /dev/ttyva > > > > But Alt+F9, Alt+F10, Alt+F11 only cause the machine to beep > > > > Possible to use /dev/ttyv9 for output device in FreeBSD? Thanks in > > advance. > > > > Best regards > > try 'man ttys' and edit your /etc/ttys. It doesn't make me nervous when I have to RTFM as I did many times and, now I am RTFMing, but, I got a feeling I am entering a "maze" filled with things I don't know: termcap, bound rate... Anyway this is how I did it after RTFM, stupid but works: 1) go to /etc/gettytab and add this: W|Wd|Wd console:\ :ht:np:al=root:sp#9600: 2) run /usr/libexec/getty Wd ttyv8 3) now you can run your application and redirect to ttyv8 # app > /dev/ttyv8 This is ugly, but it works. I'd very like to see better solutions. If you don't add that line to /etc/gettytab, run /usr/libexec/getty Pc ttyv8 will get you a ttyv8 console that you can redirect output to, but that console seems ignore carrier return / line feed, making the output difficult to read. P.S. I'd very much like the console ttyv8 can be at a speed of 9600, now it output anything almost instantly, so sometimes I cannot watch the output scroll with my eyes (by the special nature of the application I am running, glance over the output of my application when I am free can help me find a lot of useful information). The application produce less then 20MB of data, so 9600 kbps is a good measure to control the pace of output. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: not able to output anything to /dev/ttyv8?
On Tuesday 05 June 2007 11:23:04 pm Zhang Weiwu wrote: > Dear list > > On Gentoo Linux I used to redirect the output of a certain app > to /dev/tty10 and switch to tty10 (by using Alt+F10) > > this is useful to keep watching the application. > > this doesn't work on FreeBSD. I can do > # ehco hello > /dev/ttyv8 > # ehco hello > /dev/ttyv9 > # ehco hello > /dev/ttyva > > But Alt+F9, Alt+F10, Alt+F11 only cause the machine to beep > > Possible to use /dev/ttyv9 for output device in FreeBSD? Thanks in > advance. > > Best regards try 'man ttys' and edit your /etc/ttys. pgp1UhyAIMLmF.pgp Description: PGP signature