I have a strange problem and I cannot figure it out what I am doing wrong here.
Let me try to picture it.
In principle it is prety straight forward, but something odd is happening.
Here is part of the input file snmp_alm.cfg:
Here is part of the Perl code:
This is the output when the parameter value is YES:
So far so good.
But now I set it to NO:
Now I get the following output:
I thought "NO" ne "NO" would give 0 or false.
Using the debugger I see that $disable_ack_notif_value is indeed 'NO', so I am confused here.
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Is it normal behavior for a shell script that terminates to terminate its parent shell when executed with the "." option?
For example, if I have the example script (we'll name it ex.sh):
#!/bin/sh
if
then
echo "Bye."
exit 2
fi
And I execute it like this:
>./ex.sh
It... (6 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
I've posted about this before, but only recently narrowed the problem down to a specific cause.
Ok, first of all, the behavior:
It occurs when autocompletion brings up its list (not when there is only a single option). Basically, if I were to type, say,
cd ~/<TAB>
I would get something... (2 Replies)
Hi,
I'm trying to sort a text file "test":
S12
S_S12
S_S1_12
S15
S_N15
S_N1_15
By "sort test", I get:
S12
S15
S_N1_15
S_N15
S_S1_12
S_S12
It seems weird:
Comparing Line 2 and Line 3, it must be that '-' is bigger than '1'; however, comparing Line 3 and Line 4, it seems that... (3 Replies)
This really puzzles me. The following code gives me the error 'expr: syntax error' when I try to do multi-line comment using here document
<<EOF
echo "Sum is: `expr $1 + $2`"
EOF
Even if I explicitly comment out the line containing the expr using "#", the error message would still exist... (3 Replies)
Please take a look on following code:
s = socket(PF_INET, SOCK_STREAM, 0); //socket
fcntl(s, F_SETFL, O_NONBLOCK); //set socket to nonblock
retry_conn:
ret = connect(s, (struct sockaddr *)&serv_addr, sizeof(struct sockaddr_in)); // try to connect, for sure... (7 Replies)
Hi there,
I'm running into a very weird situation. Let's forget about the purpose of my initial script please. I noticed the bug whatever I'm trying to do.
I'm on an old server running bash 3.1.17.
Say we have the following script :
foo:~# cat /tmp/test
#!/bin/bash
f1() {
local... (9 Replies)
Look at the following data file(cou.data) which has four fields separated by tab.
Four fields are country name, land area, population, continent where it belongs.
As for country name or continent name which has two words, two words are separated by space.
(Data are not accurately... (1 Reply)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT PHP
picture
Picture(3U) InterViews Reference Manual Picture(3U)NAME
Picture - composite structured graphic
SYNOPSIS
#include <Unidraw/Graphic/picture.h>
DESCRIPTION
A Picture defines a composition of graphic objects. A picture has its own graphics state, which it concatenates with its children's state
when it is drawn or erased. Picture adopts the default concatenation semantics supported by the Graphic base class: The picture's graphics
state effectively overrides its children's so that they are drawn with the picture's state information substituted for their own. A
child's attribute is used only when the picture does not already define it. Moreover, each child's transformer is postmultiplied by the
picture's transformer when the picture is drawn; thus children are drawn relative to the picture's coordinate system.
PUBLIC OPERATIONS
Picture(Graphic* = nil)
Construct a new picture, optionally supply a graphic from which to copy an initial set of graphics state. Picture is derived from
FullGraphic and therefore defines a full set of graphics state.
virtual ~Picture()
The picture deletes its children when it is deleted.
boolean IsEmpty()
Picture defines IsEmpty in addition to the standard Graphic child traversal operations to provide a convenient way to check if the
picture has any children.
PROTECTED OPERATIONS
Graphic* graphic(UList*)
UList* Elem(Iterator)
Convenience functions for extracting a graphic from a UList element and a UList from an iterator.
SEE ALSO Graphic(3U), Iterator(3U), Transformer(3I), UList(3U), pspaint(3U)Unidraw 1 February 1991 Picture(3U)