Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP WITH EXPLAINATION OF SOME CODE?

Status
Not open for further replies.

NitramTELEBOY

IS-IT--Management
Jul 27, 2005
69
US
Hi, I need some help understanding the following (NOTE THIS IS NOT THE ENTIRE CODE TOP TO BOTTOM BUT HOPEFULLY ENOUGH)
1)What is the "glist" and can I cat it?
2)The last 4 lines, is that setting a capacity of 100 or something
THANKS IN ADVANCE.


#
# Erta_tcs.gem
#
world=glist (
window=glist (
name="parm_win", rows=7, cols=78, title="Custom Reports: Real-Time: rta_tc
s Input"
menu=glist (
menu_item=glist (
text="Run", value=10511
)
)
collect=glist (
name="c_i_split",
text_fld=glist (
text="Split(s):", row=1, col=2, cols=9
)
num_fld=glist (
perm="split", dyn_limits="split", synonym="split", input_visit=1
require=1, multi_value=1, row=1, col=13, cols=50
name="i_split"
)
)
collect=glist (
name="c_i_acd",
text_fld=glist (
text="ACD:", row=2, col=2, cols=4
)
num_fld=glist (
dyn_limits="acd", synonym="acd", note_new_val=1, input_visit=2
require=1, default="1", multi_value=1, row=2, col=8
cols=50, name="i_acd"
)
)
collect=glist (
name="c_ref_rate",
text_fld=glist (
text="Refresh rate in seconds: ", row=3, col=2, cols=25
)
num_fld=glist (
dyn_limits="refresh", input_visit=3, require=1, row=3
col=27, cols=3, name="ref_rate"
)
)
)
window=glist (
name="rpt_win", rows=20, cols=78, title="Custom Reports: Real-Time: rta_tc
s"
scroll_row=1, scroll_col=1,
collect=glist (
vert_repl=1, name="c_0",
text_fld=glist (
row=1, col=1, cols=6
)
num_fld=glist (
precision=0, justify="right", row=1, col=8, cols=3
)
text_fld=glist (
justify="right", row=1, col=12, cols=1
)
num_fld=glist (
precision=0, justify="right", row=1, col=14, cols=8
)
num_fld=glist (
precision=0, justify="right", row=1, col=23, cols=3
)
num_fld=glist (
precision=0, justify="right", row=1, col=27, cols=1
)
num_fld=glist (
precision=0, justify="right", row=1, col=29, cols=1
)
num_fld=glist (
precision=0, justify="right", row=1, col=31, cols=5
)
text_fld=glist (
row=1, col=37, cols=10


)
)
window parm_win
action ACT_ON_ENTRY
display_win on parm_win
get_action
action ACT_RUN
refresh 0
set $G 1 $f c_i_split,i_split,0
set $G 3 $f c_i_acd,i_acd,0
set $G 4 $f c_ref_rate,ref_rate,0
set $G 100 0
 

Does'nt look like Unix shell scripting to me unless "glist, window, action, display_win, get_action and refresh" are executables of some kind.

Good luck! [3eyes]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
I think you're barking up the wrong tree there Chacalinc. :) However I don't recognise that scripting language either...?

Annihilannic.
 
hmmmm... you are right. I just took the comment in the header (# Erta_tcs.gem) and tryed to figure out what the heck is that. (a blind punch!)

Cheers.

Chacal, Inc.[wavey]
 
Answer to 1 : "glist" seems to be a variable type, an array or a list of some sorts.
I have no idea how you can cat this. have you tried just catting / echoing the variable name of the glist-typed variable?
And sorry, can't help at all on the last four lines.

-Haben sie fosforos?
-No tiengo caballero, but I have un briquet.
 
This looks like a definition file used by some kind of screen or front end generating tool. It seems to be defining two windows, [tt]parm_win[/tt] and [tt]rpt_win[/tt]. With [tt]parm_win[/tt] taking in parameters that control what's displayed in [tt]rpt_win[/tt].

The window [tt]parm_win[/tt] seems to have three fields, split (?), ACD (Add/Change/Delete), and Refresh rate in seconds. This seems to determine what gets displayed in the [tt]rpt_win[/tt] window.

This means [tt]glist[/tt] is probably just a reserved word for whatever ustility this was written for.

I would probably start by searching other shell scripts for what command uses the file [tt]Erta_tcs.gem[/tt] as it's input. Or, look for what processes have that file open.

Hope this helps.
 
.gem are custom reports written on Solaris for the Avaya PBX call detail reporting engine (CMS).
NitramTELEBOY,

What are you trying to do? Perhaps you would be better of in the Avaya forum? forum690
 
BIS:
77.gif
77.gif
77.gif
77.gif

..We are not worthy..

That's why I though that this is a weird code...

Chacal, Inc.[wavey]
 
You guys have helped me out on more than one occasion - you certainly ARE worthy. [thumbsup2]
 
BIS,
yes it is from CMS but from my understanding the programming is done by unix gurus which is why I came here instead of the Avaya forum.

I have some unix, and a little C++ along with 10 years Avaya and I still can't find folks who program CMS on these Sun Solaris boxes, that DON'T WORK FOR AVAYA!
It's amazing, like they took these guys off to a remote location and kept them from ever leaving Avaya.

THanks for your help anyways guys!!!!!!
 
Teleboy : who cares *who* did the programming, what matters is *WHAT* is the programming.
If a genius in TurboPascal writes some code in PHP, are you gonna go get the Turbopascal people? :)

-Haben sie fosforos?
-No tiengo caballero, but I have un briquet.
 
NitramTELEBOY ,

I know what you mean. Again, what exactly are you trying to achieve? And should we move this to the Avaya forum?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top