Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-amd64
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-amd64@g.o
From: Gian Domeni Calgeer <gidoca@...>
Subject: Re: Dumb terminal question
Date: Sat, 29 Jul 2006 20:57:37 +0200
Am Samstag, 29. Juli 2006 20:08 schrieb Mihir Sevak:
> Hello everyone,
>    Can anyone guide me how to program dumb terminal software to
> redirect its output to a file?? Can a shell scrip do it ??
>   thanks.

I'm not sure if I understood what you mean, but if I'm correct you could do it 
like this:

#!/bin/sh
main () {
    <script>
}
main >testfile

This will redirect any output from the function main to the file 
named "testfile".
-- 
gentoo-amd64@g.o mailing list


References:
Dumb terminal question
-- Mihir Sevak
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Dumb terminal question
Next by thread:
Re: Dumb terminal question
Previous by date:
Dumb terminal question
Next by date:
Re: Dumb terminal question


Updated Jun 17, 2009

Summary: Archive of the gentoo-amd64 mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.