Hi All
I have a requirement like, where a file gets generated in a particular dir and once the file is ready and available then I want to execute rest of the script, because untill and unless the file exists and is available there is no use of running rest of the commands in that script.
... (5 Replies)
Hi
can any body pls help me :
I have a file Which Content is like following:
p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/msglog 2<>/dev/msglog
ca:3:respawn:/opt/GoldWing/currentPM/local/critagt > /dev/msglog 2<>/dev/msglog
ca:3:respawn:/opt/GoldWing/currentPM/local/startcia.sh... (2 Replies)
Hi All,
I am struggling to get my head around the following issue.
I am having to comment out lines between two delimiters by placing an asterix in position 7 but retain all lines in the file and in the same order.
so for example a file containing:
...
...
DELIM1
...
...
DELIM2... (2 Replies)
Hi All,
I know we can comment by using "#" .... I want to know... is there any way to comment a whole big script easily....
In a file i need to comment more than 15 lines ........ and check the script and un comment back.
I am learning VI now so its taking lot of time to comment and un... (4 Replies)
Hi
I'm trying to comment out specific lines from /etc/fstab file, for simplicity I'm trying to use perl one liner but it errors out,
Below is the Perl oneliner I'm using,
perl -wlp -i -e 'BEGIN{$flag=0}if (!/root/) && (!/boot/) && (!/tmpfs/) ) {$flag =1;} elsif (/^$/) {$flag=0} if ($flag)... (2 Replies)
I have an xml file which has following code :
<abc-ref>
<abc-name>abc.efg.hij.klm</abc-name>
</abc-ref>
I want to comment this whole section out and I have written the following script : (where "hij" is unique string in the file)
TEMPFILE=replaceYY.tmp
file=hello.xml
sed -n... (6 Replies)
I have found this bit of code that nearly does what I want.
Basically 3 input fields, I want to copy t2 to t3 as it's typed but only if t1 contains data AND t3 is empty:
<input type="text" id="t1" />
<input type="text" id="t2" />
<input type="text" id="t3" />
<script> var t2 =... (4 Replies)
Discussion started by: barrydocks
4 Replies
LEARN ABOUT DEBIAN
vtprintcap
VTPRINTCAP(5) File Formats Manual VTPRINTCAP(5)NAME
vtprintcap - database of terminal printer control codes
SYNOPSIS
/etc/vtprintcap
DESCRIPTION
vtprintcap is a simple flat file database containing a list of the names of various terminals and the codes those terminals use to start
and stop an attached printer (media hard copy). This database is used by vtprint(1) and related programs.
Each entry is composed of three lines. The first line is a comma-delimited list of names which may be used to reference this entry. The
second line the sequence of characters used by the terminal to turn on an attached hard copy device and redirect output to that device.
The third line contains the sequence of characters used to turn the device off and restore normal output to the screen.
An entry must have all three lines to be considered valid. Currently no comment lines are permitted to exist between these lines: such
lines would be interpreted as the printer control codes themselves!
The rules for selecting a terminal name are simple: you must follow the same rules as for /etc/termcap(5) names. Terminal names should be
entered in /etc/vtprintcap with exactly the same names as are in /etc/termcap.
The control code strings in the second and third lines of an entry are governed as follows: ANSI C style escapes for character constants
(e.g.
for newline) are permitted, constant strings are permitted, and quotes may be used to as delimiters in the string. (This is use-
ful if you wish you use a digit immediately following a numeric escape. For example, ESC-5 should be represented as 33"5" to avoid confu-
sion in with 335. In general, the rules outlined for ANSI constant escaping are enforced.
Additionally, /etc/vtprintcap may contain comment lines, which are indicated by placing a hash mark (#) in the first column of the line.
Remember however that entries must not be broken up by comment lines!
EXAMPLE
Here is a sample entry common to DEC vt100 and vt102 terminals:
# Sample vtprintcap entry for vt100 & vt102 terminals
vt100, vt102
33[5i
33[4i
This entry would be used whenever the user's TERM environment variable was set to "vt102" or "vt100", using ESC [5i and ESC [4i as the
printer control codes to turn a printer on and off, respectively.
DISTRIBUTION
vtprintcap is part of the vtprint package, which can be obtained by anonymous ftp at ftp.sdsu.edu in the /pub/vtprint directory. Please
read the INDEX and README files before downloading.
If you do not have ftp availability, then you can request a uuencoded copy of vtprint be sent to you via e-mail from the author. The
author is also willing to make other arrangements as needed, within certain limitations.
FILES
/etc/termcap
/etc/vtprintcap
BUGS
vtprintcap handling code currently could get confused if a printer control code is exactly the same as the name of a terminal, or contained
the name of a terminal delimited by commas. As this is very unlikely to every occur, it shouldn't be a problem.
SEE ALSO termcap(5)vtprint(1)vtprint v2.0.2 25 October 1994 VTPRINTCAP(5)