10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to read properties from a file and print evaluated values of each key.
I am using AIX6.1.
myfile.props
protocol=http
siteA.host=siteAhostname
pageA=pageNameA
siteAURL1=${protocol}:/${siteA.host}/pagea/blabla?v1=32
siteAURL2=${protocol}:/${siteA.host}/${pageA}/blabla?v1=32... (5 Replies)
Discussion started by: kchinnam
5 Replies
2. Shell Programming and Scripting
I have a variable I want to use in bash script. The user will pass an argument
to the script and I will store it in `arg_fql`. If the user does not pass the variable,
I still never set arg_fql, but I set another variable to a default. However, if the user
passes a value, `arg_fql` will be set to... (2 Replies)
Discussion started by: kristinu
2 Replies
3. Red Hat
hey,i stored the value of an sql query in an array and then tried to use that
value in while loop. actually my array will have two or more values, then according to the values i have to display result.
#!/bin/bash -xv
val_1=$( sqlplus -s rte/rted1@rel75d1 << EOF
set heading off
select... (1 Reply)
Discussion started by: ramsavi
1 Replies
4. Shell Programming and Scripting
I have server, i want to tune some storage below are my issues.
1. There is a directory
/sys/block/
There are directories starting with name emcpow* under that there is a directory queue, inside that there is file nr_requests
This is complete path
... (3 Replies)
Discussion started by: learnbash
3 Replies
5. HP-UX
hi,
iam getting error when i assign a variable to an array of more that 315 character in length
set -A array <variable>
<variable> value is 000001 000002 and up to 000045
it is giving error as
"The specified subscript cannot be greater than 1024."
can any one help me to solve this (2 Replies)
Discussion started by: gomathi
2 Replies
6. Shell Programming and Scripting
Hi All,
I'm writing a nagios check that will see if our ldap servers are in sync...
I got the status data into a nested array, I would like to search key of each array and if "OK" is NOT present, echo other key=>values in the current array to a variable
so...eg...let take the single array... (1 Reply)
Discussion started by: zeekblack
1 Replies
7. Shell Programming and Scripting
normally when i type:
condor_q | tail -1
command line returns:
0 jobs; 0 idle, 0 running, 0 held
I want use the number in front of 'running' in a series of equality tests to submit more jobs when my queue gets low. Someone showed me how to do it a few days ago by setting an array equal to... (4 Replies)
Discussion started by: pattywac
4 Replies
8. Shell Programming and Scripting
ih all,
info=$(get_Info $daemon)
# $info give :
# "ev20 8800 TTIOGC 12345 astos EDITEUR 0 0 . ."
server=$(echo $info | cut -d" " -f1)
port=$(echo $info | cut -d" " -f2)
dname=$(echo $info | cut -d" " -f3)
dport=$(echo... (1 Reply)
Discussion started by: wolfhurt
1 Replies
9. Shell Programming and Scripting
Hi Gurus,
How do I dynamically set up an array. Below is my code
if ]
then
set ecomm_task_limit = '${ecomm_srvr}'
fi
Here, I want to set values in the array "${ecomm_srvr}" into ecomm_task_limit upon each iteration. Finally I want to display all the values in the new array... (4 Replies)
Discussion started by: ragha81
4 Replies
10. UNIX for Dummies Questions & Answers
Hi again. Sorry if it seems like I'm spamming the boards a bit, but I figured I might as well ask all the questions I need answers to at once, and hopefully at least get some.
I have installed Solaris 10 on a server. The default text editors are there (vi, ex, ed, maybe others, I know emacs is... (4 Replies)
Discussion started by: EugeneG
4 Replies