From: | Gian Domeni Calgeer <gidoca@×××.ch> | ||
---|---|---|---|
To: | gentoo-amd64@l.g.o | ||
Subject: | Re: [gentoo-amd64] Dumb terminal question | ||
Date: | Sat, 29 Jul 2006 18:59:33 | ||
Message-Id: | 200607292057.37949.gidoca@gmx.ch | ||
In Reply to: | [gentoo-amd64] Dumb terminal question by Mihir Sevak |
1 | Am Samstag, 29. Juli 2006 20:08 schrieb Mihir Sevak: |
2 | > Hello everyone, |
3 | > Can anyone guide me how to program dumb terminal software to |
4 | > redirect its output to a file?? Can a shell scrip do it ?? |
5 | > thanks. |
6 | |
7 | I'm not sure if I understood what you mean, but if I'm correct you could do it |
8 | like this: |
9 | |
10 | #!/bin/sh |
11 | main () { |
12 | <script> |
13 | } |
14 | main >testfile |
15 | |
16 | This will redirect any output from the function main to the file |
17 | named "testfile". |
18 | -- |
19 | gentoo-amd64@g.o mailing list |