doubt in stanzaget


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting doubt in stanzaget
# 1  
Old 06-23-2009
doubt in stanzaget

can u tell me as what the following code does:
Code:
x="$(/u/bin/stanzaget $GDS_CONFIG_DIR/runaway_check.cfg $1 $2)"
if [ $? -eq 0 ]; then
RET_VAL=$x

thanks in advance!
# 2  
Old 06-24-2009
Runs the stanzaget program with three parameters, the second being the script's first argument, and the third being the script's second argument. The output is presumably an integer that is saved into the variable "x". If the program produces an exit code of zero (indicating success) the contents of "x" is copied to RET_VAL.

There should be an "fi" after the code you posted.
# 3  
Old 06-24-2009
ya... it concludes with a 'fi'... thanks a bunch!!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parameter getting truncated using stanzaget

Hi, My script reading parameters from a parameter file using stanzaget. (runs on ksh). One of the paramter is collection of unique numbers separated by comma and it is lengthy. Parameter file looks as below, GLOBAL: ACTIVE_STORES = 00001,00002, ----- up to 01000 wc -c... (1 Reply)
Discussion started by: Gajendra_PH
1 Replies

2. Red Hat

Doubt

How to create a file with specific size in RHEL6 (1 Reply)
Discussion started by: Sashi Kanth A
1 Replies

3. Ubuntu

Doubt

hi ,, i am new for this.. i want to know abt linux os.. which version is best for it industry.. please suggest me..:cool: (1 Reply)
Discussion started by: c vignesh kumar
1 Replies

4. Red Hat

doubt

I need help in opening the .exe files in linux. As i have downloaded ubuntu os from trail version. after executing the the file name in terminal it is stating that get archive files for opening the .exe files. But i am unable to get it please help me (2 Replies)
Discussion started by: yashwanthguru
2 Replies

5. Shell Programming and Scripting

stanzaget use ??

Hi, Can anyone tell me what does the following code actually does?? $x = `u\bin\stanzaget u\bin\store.cfg store site`; chomp $x; Thanks, Sur (0 Replies)
Discussion started by: prachisurabhi
0 Replies

6. Shell Programming and Scripting

Doubt

Hi, I have a file with multiple entries and I have calculated the percentages. Now I want to know how many of my entries are there between 1-10% 11-20% and so on.. chr1_14401_14450 0.211954217888936 chr1_14451_14500 1.90758796100042 chr1_14501_14550 4.02713013988978... (1 Reply)
Discussion started by: Diya123
1 Replies

7. UNIX for Dummies Questions & Answers

Doubt

Hi , Struck with one basic question. Iam expecting word count of 4 where "wc" is showing as 5 . # echo "abcd" | wc 1 1 5 # echo abcd | wc 1 1 5 (5 Replies)
Discussion started by: penchal_boddu
5 Replies

8. Shell Programming and Scripting

Doubt??

I jus want to know the meaning of the below command line(exclamation following that re-direction) sqlplus -s `cat /home/sample.txt` <<! Thanks!! (1 Reply)
Discussion started by: nohup
1 Replies
Login or Register to Ask a Question