Eureka! (No I am not in the bathtub :)
Here is the code that finally worked:
SET VAR vlaunch = 'httpget'
set var vfile text = '"Test. dat "'
set var vChannel text = '"* SRA "'
SET VAR vparameters = ('-o ' + . vfile + '-r -S ' + . vChannel + '
192.168.0.83:1000')
SET VAR vlaunch = (. vlaunch & '|' & . vparameters & '| W' )
Launch . vLaunch
return
I do not understand the reasons, but using a variable instead of code in
places makes
a big difference. In others including the LAUNCH in the vLaunch variable made
a difference as well.
It worked on some samples, but not in the final version needed. Even using
spaces in code versus using
& or + made a difference. I must have went through 15 variations of
construct.
When displaying the combined variable vLaunch , the results looked the same,
but
certainly did not get processed the same. I.E. I made sure that all vLaunch
variables looked to be the exact format needed, however none of them worked
except one, even though they all looked the same via the show variable.
So the moral of the story is... keep trying cause you probably can get it to
work!
Thanks for everyone's input.
-Bob
----- Original Message -----
From: "Javier Valencia" < javier . valencia @ vtgonline .com>
To: "RBASE-L Mailing List" < rbase -l@ rbase .com>
Sent: Wednesday, April 13, 2011 7:45:17 PM
Subject: [RBASE-L] - Re: Launch Question
I do not understand the reasons, but using a variable instead of code in
places makes
a big difference. In others including the LAUNCH in the vLaunch variable made
a difference as well.
It worked on some samples, but not in the final version needed. Even using
spaces in code versus using
& or + made a difference. I must have went through 15 variations of
construct.
When displaying the combined variable vLaunch , the results looked the same,
but
certainly did not get processed the same. I.E. I made sure that all vLaunch
variables looked to be the exact format needed, however none of them worked
except one, even though they all looked the same via the show variable.
So the moral of the story is... keep trying cause you probably can get it to
work!
Thanks for everyone's input.
-Bob
----- Original Message -----
From: "Javier Valencia" < javier . valencia @ vtgonline .com>
To: "RBASE-L Mailing List" < rbase -l@ rbase .com>
Sent: Wednesday, April 13, 2011 7:45:17 PM
Subject: [RBASE-L] - Re: Launch Question
Bob,
Here is code I use to launch an external program ( boxcutter . exe ) that grabs
a portion of the screen specified by the passing parameters, and stores it in
an image file:
SET VAR vGraphFile TEXT = (‘ web_screen. bmp ')
SET VAR vLaunchProg = 'boxcutter . EXE'
SET VAR vLaunchParams = ('-c 4 ,4,548,400' & . vGraphFile )
SET VAR vLaunch = (. vLaunchProg & '|' & . vLaunchParams & '| W' )
LAUNCH . vLaunch
I ran into the same issues you have and creating a variable from the separate
parts finally did the trick. Modify it to fit your parameters and see if it
works for you.
Javier,
Javier Valencia , PE
913-829-0888 Office
913-915-3137 Cell
913-649-2904 Fax
javier . valencia @ vtgonline .com
From: rbase -l@ rbase .com [ mailto : rbase -l@ rbase .com] On Behalf Of ttc
[email protected]
Sent: Wednesday, April 13, 2011 6:43 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Launch Question
Sorry, we crossed emails.
I cut and pasted the below with the same results.
Program fires, but does not seem to get the parameters correctly.
I have to leave for the night, so hopefully tomorrow will bring better results!
Thanks again.
-Bob
----- Original Message -----
From: "Mike Byerley " < mbyerley @ byerley .net>
To: "RBASE-L Mailing List" < rbase -l@ rbase .com>
Sent: Wednesday, April 13, 2011 6:24:06 PM
Subject: [RBASE-L] - Re: Launch Question
I mean like:
SET VAR vlaunch = 'Launch HTTPGET . exe'
SET VAR vparameters = '-0 "Test. dat " -r -S "* SRA " 192.168.0.83:1000'
SET VAR vlaunch = (. vlaunch + '|' + . vparameters + '| W' )
& vLaunch
also, the & you used in your Parameter string is not required as there are
no spaces around the pipe symbol..
----- Original Message -----
From: < ttc [email protected]>
To: "RBASE-L Mailing List" < rbase -l@ rbase .com>
Sent: Wednesday, April 13, 2011 4:36 PM
Subject: [RBASE-L] - Launch Question
My day to ask questions! I need to launch an external program with
parameters. Here is my code:
set var vLaunch = 'HTTPGET . exe'
set var vParameters = '-0 "Test. dat " -r -S "* SRA " 192.168.0.83:1000'
set var vLaunch = (. vLaunch & '|' & . vParameters & '| W' )
Launch . vLaunch
It does not work. Are the double quotes allowed in the parameters?
Any other thoughts?
Thanks again,
-Bob