[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using terminal output as input



On Tue, May 19, 2009 at 10:02:54AM -0500, Boyd Stephen Smith Jr. wrote:

> AIUI, screen is quite scriptable and should be capable of sending output to 
> the process(es) attached to it.  This would allow you to write "screen 
> scripts" that used the shell for what it is good at and used screen for what 
> it is good at.

And as you mentioned scripts, I'll mention script(1) again.

tzafrir@sweetmorn:~$ script /tmp/log
Script started, file is /tmp/log
tzafrir@sweetmorn:~$ which mozilla
/usr/bin/mozilla
tzafrir@sweetmorn:~$ exit
Script done, file is /tmp/log
tzafrir@sweetmorn:~$ cat /tmp/log
Script started on IDT 16:35:21 2009 מאי 20 ד'
tzafrir@sweetmorn:~$ which mozilla
/usr/bin/mozilla
tzafrir@sweetmorn:~$ exit

Script done on IDT 16:35:32 2009 מאי 20 ד'

-- 
Tzafrir Cohen         | tzafrir@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@cohens.org.il |                    |  best
ICQ# 16849754         |                    | friend


Reply to: