Re: More BASH questions
Fulgham, Brent/SCO [EMAIL PROTECTED] writes: Can anyone tell me if there is a way to generate screen dumps of bash sessions? For example, let's say I have a test-mode application that asks for some input and then outputs something in response. Is there a way to have this whole exchange dumped to the printer, so that both the program output and my manual input are copied to the printer? This would be similar to the screen dump capability of DOS. Use the script program. It saves all your input and the bash' output into a file which can be printed as usual. Torsten -- I haven't lost my mind -- it's backed up on tape somewhere. Fortune Cookie PGP Public key available -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: More BASH questions
Brent, Try the following cat /dev/vcsaX | lpr Where X is the number of the Virtual Console that contains the output that you want to print. You can do the same to a file: cat /dev/vcsaX screen.dump Hope this helps, Steve Mayer [EMAIL PROTECTED] Fulgham, Brent/SCO wrote: Can anyone tell me if there is a way to generate screen dumps of bash sessions? For example, let's say I have a test-mode application that asks for some input and then outputs something in response. Is there a way to have this whole exchange dumped to the printer, so that both the program output and my manual input are copied to the printer? This would be similar to the screen dump capability of DOS. Thanks, -Brent -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] . -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: More BASH questions
On Mon, 16 Feb 1998, Fulgham, Brent/SCO wrote: Can anyone tell me if there is a way to generate screen dumps of bash sessions? For example, let's say I have a test-mode application that asks for some input and then outputs something in response. Is there a way to have this whole exchange dumped to the printer, so that both the program output and my manual input are copied to the printer? This would be similar to the screen dump capability of DOS. Look at the bash manpage, especially the section about i/o redirection. This may be a bit difficult for starters though. Or look at tee which is in package shellutils. tee lets you redirect output from a process to a file, a printer, a terminal or whatever else unix thinks is a file. Or look at script, which is in bsdutils and will save both input and output to a file. Script is probably the easiest. Just type script, do you thing and when you're finished, type exit (or hit Ctrl-D) and you'll find the session transcript in a file called typescript (can change that with options.) Then you can look at that file and optionally edit it before printing it. Cheers, Joost -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: More BASH questions
On Mon, Feb 16, 1998 at 10:38:15AM -0700, Fulgham, Brent/SCO wrote: Can anyone tell me if there is a way to generate screen dumps of bash sessions? For example, let's say I have a test-mode application that asks for some input and then outputs something in response. Is there a way to have this whole exchange dumped to the printer, so that both the program output and my manual input are copied to the printer? This would be similar to the screen dump capability of DOS. Thanks, -Brent Check out the 'script' program. It will log all input and output to a file. Adam Klein -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: More BASH questions
On Mon, Feb 16, 1998 at 10:38:15AM -0700, Fulgham, Brent/SCO wrote: Can anyone tell me if there is a way to generate screen dumps of bash sessions? For example, let's say I have a test-mode application that asks for some input and then outputs something in response. Is there a way to have this whole exchange dumped to the printer, so that both the program output and my manual input are copied to the printer? This would be similar to the screen dump capability of DOS. The way I usually use is to go into emacs, go into shell mode (alt-x shell enter, for non-emacs users), run whatever command, edit the output, and print it (alt-x lpr-buffer). Fast flexible. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: More BASH questions
I usually use gmp package for selecting with mouse an interesting area of the screen and pasting it into my favorite editor (joe) on another virtual console. Wojtek Zabolotny [EMAIL PROTECTED] On Mon, 16 Feb 1998, Fulgham, Brent/SCO wrote: Can anyone tell me if there is a way to generate screen dumps of bash sessions? For example, let's say I have a test-mode application that asks for some input and then outputs something in response. Is there a way to have this whole exchange dumped to the printer, so that both the program output and my manual input are copied to the printer? This would be similar to the screen dump capability of DOS. Thanks, -Brent -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] . -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .