How do I evaluate the result of a command assigned to a variable??
Example:
var1=`cmd`
rc=$?
rc will be the result of the assignment rather than cmd since it executes after. How do I evaluate the result of the command itself?
Cheers..:confused: (2 Replies)
Hello All,
I want to list all the VIP addresses assigned to Solaris server.
whats the command we have use on solaris for this?
Please help
Thanks!!
Weblogic Consultant (1 Reply)
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
could someone show me a sample command line option driven script?
i want to see an easy way to write one and how i can execute it using command line options such as typing in
read.pl -i <id> -c <cmds> -s <start> -e <end>
would read out all the commands run by ID . from start time to... (7 Replies)
Hi,
i'm posting this in the Solaris forum although maybe it should be better in the General unix forum, I'm formatting an output witht he following command:
crontab -l | grep GBOUAT8 | grep UTP | grep -i stop | sed 's/\\//'
08 2 * * 2-6 /apps/sum_glob/gbo_uat/sparse/bin/dmg_cronlaunch -ENVI... (2 Replies)
I have a script which outputs some timing data a line at a time. There are approx. 10 lines echoed, each line looks something like this:
0.741 http://checkip.dyndns.org 94.170.119.226Since I needed to add all the values in the first column, I piped the output to grep, matching and printing the... (7 Replies)
I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes
CC=`which gcc`
CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
OSX 10.9
I am building a script that evaluates the difference between 2 files. Here is a command that does not work transparently.
Running this command in Terminal yields great results; however when I put that line in a .sh script, I get the errors shown below. Am I doing something silly?
... (1 Reply)
Hi,
My command is getting stuck while running it.
observed that the grep command doesn't returned any data ($? was 1) and it failed.
This command is assigned into the variable and used in other command as script progresses. To continue the script output, i have to press ^C twice and script... (2 Replies)
Discussion started by: abhii
2 Replies
LEARN ABOUT CENTOS
font::ttf::gsub
Font::TTF::GSUB(3) User Contributed Perl Documentation Font::TTF::GSUB(3)NAME
Font::TTF::GSUB - Module support for the GSUB table in conjunction with TTOpen
DESCRIPTION
Handles the GSUB subtables in relation to Ttopen tables. Due to the variety of different lookup types, the data structures are not all that
straightforward, although I have tried to make life easy for myself when using this!
INSTANCE VARIABLES
The structure of a GSUB table is the same as that given in Font::TTF::Ttopen. Here we give some of the semantics specific to GSUB lookups.
ACTION_TYPE
This is a string taking one of 4 values indicating the nature of the information in the ACTION array of the rule:
g The action contains a string of glyphs to replace the match string by
l The action array contains a list of offsets and lookups to run, in order, on the matched string
a The action array is an unordered set of optional replacements for the matched glyph. The application should make the selection
somehow.
o The action array is empty (in fact there is no rule array for this type of rule) and the ADJUST value should be added to the
glyph id to find the replacement glyph id value
MATCH_TYPE
This indicates which type of information the various MATCH arrays (MATCH, PRE, POST) hold in the rule:
g The array holds a string of glyph ids which should match exactly
c The array holds a sequence of class definitions which each glyph should correspondingly match to
o The array holds offsets to coverage tables
CORRESPONDANCE TO LAYOUT TYPES
The following table gives the values for ACTION_TYPE and MATCH_TYPE for each of the 11 different lookup types found in the GSUB table
definition I have:
1.1 1.2 2 3 4 5.1 5.2 5.3 6.1 6.2 6.3
ACTION_TYPE o g g a g l l l l l l
MATCH_TYPE g g c o g c o
Hopefully, the rest of the uses of the variables should make sense from this table.
METHODS
$t->read_sub($fh, $lookup, $index)
Asked by the superclass to read in from the given file the indexth subtable from lookup number lookup. The file is positioned ready for the
read.
$t->extension
Returns the table type number for the extension table
$t->out_sub($fh, $lookup, $index)
Passed the filehandle to output to, suitably positioned, the lookup and subtable index, this function outputs the subtable to $fh at that
point.
AUTHOR
Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright and licensing.
perl v5.16.3 2011-10-13 Font::TTF::GSUB(3)