|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
|
Thread Tools | Display Modes |
|
|||
Nope, the programs only output to stdout directly.. at least in the BSD implementations.. without modifying the source a copy of the output will end up there.
One thing you could do is redirect stdout to somewhere temporary (file/pipe), and then copy it to stderr. |
|
||||
Quote:
$ echo something >&2 is not what you want. Can you eleaborate on why you don't want it? Note that if other redirections are around, then maybe grouping $ { echo something >&2 ; } or a subshell $ ( echo something >&2 ) might help. |
|
||||
@Carpetsmoker
I have always been using echo "..." 1>&2 for that purpose.
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ask for a shell script | Simon | Programming | 5 | 27th April 2010 01:07 AM |
shell script with zenity | bsdnewbie999 | OpenBSD General | 5 | 24th April 2009 02:37 AM |
shell script compare md5 sum | bsdnewbie999 | Programming | 1 | 11th April 2009 02:20 PM |
Shell Script. | bsdnewbie999 | Programming | 21 | 15th July 2008 07:54 AM |
shell script with input | c0mrade | Programming | 5 | 13th July 2008 04:33 AM |