Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Linux/Unix question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Linux/Unix question
 Login/Join
 
Master
posted
I'm having trouble with the import script for MRE in WebFOCUS 8. I'm trying to understand what is going on and I have a question about some syntax used in the script and hoping someone here has an answer. (I do have a problem report open with IBI).

Assume you have a variable WFROOT and it is set to "/opt/ibi/WebFOCUS80".

What is the difference between $WFROOT and ${WFROOT}?

This message has been edited. Last edited by: <Kathryn Henning>,


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Guru
posted Hide Post
Ahh, this will depend somewhat on the exact Shell you are using, but I use ${variable_name} by default because it allows you use your variable in the middle of another string:

FILENAME=output

tail ${FILENAME}_LOG

This will run tail on the file output_log, while

tail $FILENAME_LOG

will fail unless you have a variable called FILENAME_LOG

Exceptionally useful when you are doing things like renaming file extensions.

For a great intro to script writing(specifically BASH) have a look at http://www.ibm.com/developerworks/library/l-bash/

Cheers

Stuart


WebFOCUS 8.2.03 (8.2.06 in testing)
 
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007Report This Post
Master
posted Hide Post
Cool. Thanks for the explanation.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Linux/Unix question

Copyright © 1996-2020 Information Builders