Below is some perl code that I've run on each line of the evaluated file to mitigate for those bloody control characters:
To me this is like skinning the cat from the inside out, so I've already given myself the "performance lecture". Still I would be very interested if any of you foresee any function issue that may surface by doing this.
By way of example below is a small perl script that demonstrates the behavior:
Again, thanks to each of you for engaging this with me.
Cheers,
Larry Moon
This User Gave Thanks to larryjmoon For This Post:
I know the Sun Solaries versions are ( 2.3 , 2.4 , 2.5 ... 7 , 8 ) .
But some times I see sun os v5.x what does it mean ??
also what is the last new machine for sun and what are its details specifications .
Thanks (3 Replies)
MY question is :
First I create emergency_disk successful ,and then I create emergency_rec with command
" /sbin/emergency_rec ctape1 " (in single user mode)
it prompt me as :
"/tmp is busy "
and
"/usr/tmp/hwrdmon open failed errno 0X2
adapter enquiry failed for 1 adapter "
and it... (1 Reply)
Hello Again,
Ok guys. Thanks again for your help last time but I am in need of your experience again. I wrote this script:
#!/bin/sh
# List either files or directories in individual accounts
# using 1, 2 or 3 with invalid
case $1 in
echo select 1 to see the FILES in your... (3 Replies)
this is the simple question, please help me!
the question is: how to send exactly 50 ICMP Echo request packets with 500 bytes of payload to 202.139.129.221?
I tried to use ping -F 500 202.139.129.221, but it didn't work.
Thanks! (6 Replies)
Ive got some output in a file that looks exactly like this:
1
-----------
1542
1 record(s) selected.
How do I just extract that 1542 and drop it into another file or (preferrably) a variable (using a ksh script) (9 Replies)
I have a file name in this format
ABC_WIRE_TRANS_YYYYMMDD_00.DAT
I need to cut out the _00 out of the file name everytime. It could be _00, _01,_02, etc ....
How do I cut it out to look as follows?
ABC_WIRE_TRANS_YYYYMMDD.DAT (6 Replies)
Hi everybody:
Could anybody tell me if I have several files which each one it has this pattern name:
name1.dat name2.dat name3.dat name4.dat name10.dat name11.dat name30.dat
If I would like create one like:
name_total.dat
If I do:
paste name*.dat > name_total.dat (15 Replies)
I'm looking to write a script that takes a certain directory and gzips all its files that are older than 2 days. I've done some research but for the life of me, I can't even get any files gzipped. Any help would be greatly appreciated! (3 Replies)
How can I write a perl script to always only grab everything that is after Service: and before State:
Service Transition - Service:jatthlink_jmsay_1 State:alive (4 Replies)
Discussion started by: SkySmart
4 Replies
LEARN ABOUT HPUX
script
script(1) General Commands Manual script(1)NAME
script - make typescript of terminal session
SYNOPSIS
[file]
DESCRIPTION
makes a typescript of everything printed on your terminal. It starts a shell named by the environment variable, or by default and silently
records a copy of output to your terminal from that shell or its descendents, using a pseudo-terminal device (see pty(7)).
All output is written to file, or appended to file if the option is given. If no file name is given, the output is saved in a file named
The recording can be sent to a line printer later with lp(1), or reviewed safely with the option of cat(1).
The recording ends when the forked shell exits (or the user ends the session by typing "exit") or the shell and all its descendents close
the pseudo-terminal device.
This program is useful when operating a CRT display and a hard-copy record of the dialog is desired. It can also be used for a simple form
of session auditing.
respects the convention for login shells as described in su(1), sh(1), and ksh(1). Thus, if it is invoked with a command name beginning
with a hyphen (that is, passes a basename to the shell that is also preceded by a hyphen.
The input flow control can be enabled by setting environmental variable before running Please see section for details on using this envi-
ronment variable.
EXAMPLES
Save everything printed on the user's screen into file
Append a copy of everything printed to the user's screen to file
WARNINGS
A command such as which displays the contents of the destination file, should not be issued while executing because it would cause to log
the output of the command to itself until all available disk space is filled. Other commands, such as more(1), can cause the same problem
but to a lesser degree.
records all received output in the file, including typing errors, backspaces, and cursor motions. Note that it does not record typed char-
acters; only echoed characters. Thus passwords are not recorded in the file. Responses other than simple echoes (such as output from
screen-oriented editors and command editing) are recorded as they appeared in the original session.
When there is no input flow control is not set), there can be some data loss while using However, script(1) can behave unexpectedly, if is
set and is not set.
AUTHOR
was developed by the University of California, Berkeley and HP.
script(1)