12-23-2001
i think it works !!
hi
i think it works !!!
thanks a lot !!!!!!!! :-)
udi
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have some problem in assigning values to variables: This is what Iam literally doing:
i=0
input=test
temp$i = $input
In the sense, I try to assign the value in the variable input (ie., test) to another variable temp0 (since i is assigned 0, temp$i is temp0). Seems simple, but I get... (3 Replies)
Discussion started by: mohanprabu
3 Replies
2. Solaris
hi ,
i have a problem in setting value of $TERM variable in solaris while installing the SUN SPARCT1 simulation environment on ma pc so some one plkease guide me i have attached a snapshot of my error below thankew (1 Reply)
Discussion started by: Naughtydj
1 Replies
3. UNIX for Advanced & Expert Users
The AppName may be TCS/HCL/SCB.
For All the above 3 i ill have exported TCSDIR/HCLDIR/SCBDIR in .profile with some path.
i'm cnstruct the path in script and trying to cd $VARIABLE, it shows "not found".
Any solution for this....?
> AppName="TCS"
> echo $AppName
TCS
>... (4 Replies)
Discussion started by: palsevlohit_123
4 Replies
4. Shell Programming and Scripting
Hi,
I've a problem with wariables in awk.
My example:
$ cat test.txt
12|aaaa
13|bbbb
012|cccc
0123|dddd
$ cat test.awk
$1 == var {print $0}
$ cat test.sh
/usr/xpg4/bin/awk -F"|" -v var="012" -f test.awk test.txt (5 Replies)
Discussion started by: apresa
5 Replies
5. Shell Programming and Scripting
I am writing a script with a sed call that needs to use a variable and still have quotations be present in the substitution.
Example:
sed -i "s/Replacable.\+$/Replaced="root@$VAR"/g"
this outputs:
where $VAR = place
Replaced=root@place
and i need
Replaced="root@place"
... (2 Replies)
Discussion started by: mcdef
2 Replies
6. Shell Programming and Scripting
Hello,
I have a problem combining two variables into one.
I did the following:
in my env variables i had set
PATH_DESTINATION_1=/root/path_one
PATH_DESTINATION_2=/root/path_two
#!/usr/bin/ksh
count=1
count_path=2
while
do (3 Replies)
Discussion started by: Eraser
3 Replies
7. Shell Programming and Scripting
Hello,
I have a tricky problem:
I have a $file with a variable number of occurrences of "ORA-" (in this case two)
..........
EXP-00008: ORACLE error 3113 encountered
ORA-03113: end-of-file on communication channel
EXP-00056: ORACLE error 1403 encountered
ORA-01403: no data found... (9 Replies)
Discussion started by: Laurentiu
9 Replies
8. Shell Programming and Scripting
Hello, my problem is simple & I searched a lot but I couldn't find anything about it:
Basically I'd like to pass $i to a variable, $i being the positional variable; but it is unknown in the beginning so I can't do it like eg. myvar=$3, it HAS to be the "i"..
First, I tried myvar=$($i) ... (8 Replies)
Discussion started by: timmyyyyy
8 Replies
9. Shell Programming and Scripting
I have searched the forums and other sites and cannot come with the applicable approach for what I am trying to do. I am trying to setup a cron job that executes this script. The script uses iSQL - which is connecting ok - to then query a field and then assign that field to a variable to do an If... (4 Replies)
Discussion started by: courtneyjh
4 Replies
10. Shell Programming and Scripting
Hello!
I have a problem to insert variables with sed... And I can't find the solution. :confused:
I would like to display one/few line(s) between 2 values.
This line works well
sed -n '/Dec 12 10:42/,/Dec 12 10:47/p'
Thoses lines with variables doesn't work and I don't find the... (2 Replies)
Discussion started by: Castelior
2 Replies
LEARN ABOUT OPENSOLARIS
hal-set-property
hal-get-property(1M) System Administration Commands hal-get-property(1M)
NAME
hal-get-property, hal-set-property - get and set HAL device properties
SYNOPSIS
hal-get-property --udi udi --key key [--help] [--verbose]
[--version]
hal-set-property --udi udi --key key {--int value | --uint64 value
| --string value | --bool value | --strlist-pre value
| --strlist-post value | --strlist-rem value | --double value
| --remove value} [--help] [--version]
DESCRIPTION
The Hardware Abstraction Layer (HAL) provides a view of the various hardware attached to a system. This view is updated dynamically as
hardware configuration changes by means of hotplug or other mechanisms. HAL represents a piece of hardware as a device object. A device
object is identified by a unique identifer and carries a set of key/value pairs, referred to as device properties. Some properties are
derived from the actual hardware, some are merged from device information files (.fdi files), and some are related to the actual device
configuration.
The hal-get-property and hal-set-property commands allow you to get and set properties of hardware that conforms to HAL specifications.
OPTIONS
The following options are supported:
--udi udi
Unique device ID.
--key key
Key of the property to set.
--int
Set value to an integer. Accepts decimal or hexadecimal value prefixed with 0x or x.
--uint64
Set value to an integer. Accepts decimal or hexadecimal value prefixed with 0x or x.
--string value
Set value to a string.
--double value
Set value to a floating point number.
--boolean value
Set value to a boolean, that is, true or false
--strlist-pre value
Prepend a string to a list.
--strlist-post value
Append a string to a list.
--strlist-rem value
Remove a string from a list.
--remove value
Indicates that the property should be removed.
--version
Display version and exit.
--help
Display list of options and exit
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWhalr |
+-----------------------------+-----------------------------+
|Interface Stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO
hald(1M), attributes(5), hal(5)
SunOS 5.11 18 Aug 2006 hal-get-property(1M)