Hi,
I have a config.xml which cointains the tags like
<CONFIG>
<PROPERTY name="port" value="1111"/>
<PROPERTY name="dbname" value="ABCDE"/>
<PROPERTY name="connectstring" value="xyz/pwd"/>
</CONFIG>
This file is in some directory at UNix box.
I need to write a... (4 Replies)
I have sourced a property file in my script like this to load some variables in the script
Then i am able to echo all the property file values inside script but the script is not able to recognize other unix commands
#!/bin/bash
. build.properties
mkdir build
i am getting error ... (3 Replies)
Hi,
Iam in a need for a script/function in KSH where I want to read a text file (property file) in block by block. Here is the example:
Heading Name Descripton
Block Block1 Value1 Description
Property Name Value
Property Name Value
Property Name Value
Property Name Value
Property Name... (7 Replies)
Hi All,
I'm Raghavendra. I have a very urgent requirement to develop a Shell Script which will allow to use variables in a property file as demonstarted below
var1=UNIX
var2=LINUX
var3=WINDOWS
var4=$var1,$var2
var5=$var3
Could you please help me to develop a shell script which can... (2 Replies)
Hi have some xml like this
<example>
<Cell Name="Cell1" ConfigureHost="claas" Role="APPSERV,BACKEND">
<Node Name="aaaaa" Role="APPSERV,BACKEND,CLM"/>
<Node Name="vvvv" Role="APPSERV,BACKEND"/>
<Mercury Type="default" FQDN="ssssss"
PrimaryReturnFQDN=""/>
</Cell>
... (1 Reply)
Hi!
i need a script that can read a property file.
i.e., A script to read a "property" from property file.
Read the property value and
based on value of property, decide whether to start the some dataload activity or not.
Its urngent. Can anyone help me out???:( (7 Replies)
Hi All,
Need your help to fix one script.
Main agenda is:
1. Read a property file.
2. Delete all files in directory except the name from Property file.
I am trying to read property file for value then deleting all files from directory except THAT value/name.
I have tried so far as... (3 Replies)
Discussion started by: sukhdip
3 Replies
LEARN ABOUT OPENSOLARIS
devprop
devprop(1M) System Administration Commands devprop(1M)NAME
devprop - display device properties
SYNOPSIS
/sbin/devprop [-n device-path] [-vq] [-{b|i|l|s}] [property[...]]
DESCRIPTION
The devprop command displays named device properties from the device tree.
If a device path is specified on the command line, devprop displays device properties for that device node.
The output formats, while Volatile, are patterned after those of prtconf(1M).
OPTIONS
The following options are supported:
-b
The properties to be output are sequences of bytes (DI_PROP_TYPE_BYTES). -b, -i, -l, and -s are mutually exclusive of one another.
-i
The properties to be output are integers (DI_PROP_TYPE_INT).
-l
The properties to be output are 64-bit integers (DI_PROP_TYPE_INT64).
-s
The properties to be output are strings (DI_PROP_TYPE_STRING) (the default).
-n device-path
The path to a target device node for which properties are displayed. The default path is that of the root node (equivalent to specify-
ing -n /).
-q
Specifies quoted output mode, in which string properties are output surrounded by double quotation marks (").
-v
Specifies verbose mode, in which the name of the property is output before its value.
OPERANDS
The following operand is supported:
property...
Name of the property to be displayed.
EXIT STATUS
0
No error occurred.
non-zero
An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsr |
+-----------------------------+-----------------------------+
|Interface Stability |See below. |
+-----------------------------+-----------------------------+
The command invocation and output are both Volatile. The location of the utility is Committed.
SEE ALSO prtconf(1M), libdevinfo(3LIB), attributes(5)SunOS 5.11 26 Sep 2007 devprop(1M)