Re: Can less read its input from the stderr ? How ?
In article <[EMAIL PROTECTED]>, Joel Keating <[EMAIL PROTECTED]> wrote: >-=-=-=-=-=- > >No you can't use the less command. To switch stdout with stderr do ># ln -s /dev/stdout /dev/stderr Don't try this at home kids. It's nonsense. [please THINK before you tell someone to perform some command as root while you yourself are not even sure what it does!] Mike. -- Miquel van Smoorenburg | Our vision is to speed up time, [EMAIL PROTECTED] | eventually eliminating it. -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
Re: Can less read its input from the stderr ? How ?
Another possible option here is to use SHIFT-PGUP if on a virtual terminal or use the scroll bars in an xterm. Has the added benifit of not having to retype the command that is erroring. On Mon, 27 Jul 1998 [EMAIL PROTECTED] wrote: > Supose I have a program that output long text to stderr. Can I use the less > command to page in it ? How ? > Can I switch the stdout with the stderr ? > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > /*** Running Debian Linux *** * For God so loved the world that He gave his only begotten Son, * * that whoever believes in Him should not perish...John 3:16 * * W. Paul Mills * Topeka, Kansas, U.S.A. * * EMAIL= [EMAIL PROTECTED] * WWW= http://Mills-USA.com/ * * Bill, I was there several years ago, why would I want to go back? * / -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
Re: Can less read its input from the stderr ? How ?
No you can't use the less command. To switch stdout with stderr do # ln -s /dev/stdout /dev/stderr or the other way around. I'm not sure which way you like it (Perhaps because i have no idea why you want to do that.) [EMAIL PROTECTED] wrote: > > Supose I have a program that output long text to stderr. Can I use the less > command to page in it ? How ? > Can I switch the stdout with the stderr ? > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/nullbegin: vcard fn: Joel Keating n: Keating;Joel org:Wisconsin Electric Power Company adr;dom:W237 N1500 Busse Rd.;;;Waukesha, WI 53188;;; email;internet: [EMAIL PROTECTED] title: Information Resources Consultant tel;work: (414) - 544 - 7256 tel;fax:(414) - 574 - 6080 tel;home: (414) - 697 - 3477 x-mozilla-cpt: ;-1360 x-mozilla-html: FALSE version:2.1 end:vcard
Re: Can less read its input from the stderr ? How ?
On Mon, Jul 27, 1998 at 09:32:45PM +0300, [EMAIL PROTECTED] wrote: > Supose I have a program that output long text to stderr. Can I use the less > command to page in it ? How ? > Can I switch the stdout with the stderr ? command 2>&1 | less you can redirect stderr (fd 2) with 2> file or 2>&1 (stderr goes to same place as stdout) -- this is useful for a few things.. like redirecting ALL output to a file.. like: reallyverboseprogram > /dev/null 2>&1 note that this is not the same as 2>&1 > /dev/null -- as this redirect stderr to the terminal.. then redirects stdout to /dev/null -- while err is still going to terminal hope that helps =) Raz.. -- [ Razathorn <[EMAIL PROTECTED]> ] [ PGP public key http://www.sound.net/~fileland/pubkey.shtml ] [ Finger Print: B8 9B 4B F5 67 1C A3 86 2F 91 F2 81 08 08 79 49 ] -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
Re: Can less read its input from the stderr ? How ?
Maybe running your program as % program 2>&1 |less works. This redirects stderr (file descriptor 2) to where stdout goes. // Heikki -- Heikki Vatiainen * [EMAIL PROTECTED] Tampere University of Technology * Tampere, Finland -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
Can less read its input from the stderr ? How ?
Supose I have a program that output long text to stderr. Can I use the less command to page in it ? How ? Can I switch the stdout with the stderr ? -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null