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

Re: script command question



-----BEGIN PGP SIGNED MESSAGE-----

On Mon, 30 Aug 1999, Mark Wagnon wrote:

> I'm taking a C class this semester and my instructer want us to use
> the script command to verify our work: cat the program, compile it,
> and enter test data while scripting.

i'm hoping you don't have to print it all out then... That's a huge pain,
and waste of paper! (if you do, look into a2ps or mpage to put multiple
pages on one sheet)

> The program itself is easy to use, but I get control codes embedded
> in the file. Things like ^G, ^H, and ^M. Has anyone used this
> program (I didn't even know it existed until today), and experienced
> the insertion of control characters or know how to prevent it?

^G is the bell character, whenever you do something that makes the console
beep you'll get one of these in the script output.

^H is backspace. Don't make mistakes, and you won't get it ;) ... Also,
now you can understand those jokes like "Be nice to the
idiots^H^H^H^H^H^Husers"

^M is the carriage return character. i don't know why you're getting it,
unless you used some editor to write your program that uses windows or mac
style EOL... Or if the program outputs windows or mac style EOL sequences.

> If not, no big deal. It'll be an excuse to delve into writing a shell
> script to strip them out :)

Go for it. i won't even offer any suggestions, to let you see what you can
discover yourself.


- -- 
  finger for PGP public key.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBN8t9Hb7M/9WKZLW5AQF6wgP+N6BONHvvWpt7lJFS6WGlsxwK08DGjF49
wrrzNsxy9DUt34g+2dydfdHCabWt0NPUFNsV0qZsSQ2JOALvgkl+Yxua2pDsbCce
YdQhTfm1Ll/4nVSJWh4WNQctQuDZCywnz+ZzGG4Pt7qOMvJvY7F8FBPWzlwiFq2D
CpVb5MNFV6g=
=Ilt0
-----END PGP SIGNATURE-----


Reply to: