CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
need help with the parameters

 



zoomer003
Novice

May 14, 2010, 8:40 AM

Post #1 of 6 (1433 views)
need help with the parameters Can't Post

that executes and .exe but the but it reads its parameters from a text file .. for example the instructions for the exe file are in a text file ..
WHAT DO I DO?
Attachments: help.bmp (45.2 KB)


FishMonger
Veteran / Moderator

May 14, 2010, 9:23 AM

Post #2 of 6 (1429 views)
Re: [zoomer003] need help with the parameters [In reply to] Can't Post

We can't troubleshoot code that you haven't shown.

Based on the error message, I'd say you need to pass the 2 required parameters to the script. How you do that will depend on how the script expects them to be passed.

Please post the script and explain how you plan on executing it i.e., from the command line, or as a cgi (web) script.


(This post was edited by FishMonger on May 14, 2010, 9:23 AM)


zoomer003
Novice

May 14, 2010, 10:59 AM

Post #3 of 6 (1423 views)
Re: [FishMonger] need help with the parameters [In reply to] Can't Post

The EXE file = glgps_win_xp.exe

the text file that it has to go to gpsconfig_4751, 26MHZ_2PPM_10MHZ_100PPB, 4751_DANUBE_EXT_LNA.txt

Job ID it has to pick from the text above = Factory_Low_SNR

@args = ("glgps_win_xp.exe", "C:\Broadcom GLL\WinXP_VC8_2.15.3.75571\glgps_win_xp.exe", "gpsconfig_4751, 26MHZ_2PPM_10MHZ_100PPB, 4751_DANUBE_EXT_LNA, Factory_Low_SNR");

system(@args) == 0 or die "system @args failed: $?";
Attachments: help.bmp (45.2 KB)


FishMonger
Veteran / Moderator

May 14, 2010, 11:35 AM

Post #4 of 6 (1418 views)
Re: [zoomer003] need help with the parameters [In reply to] Can't Post

Try changing it to:

Code
@args = ('glgps_win_xp.exe', 'gpsconfig_4751, 26MHZ_2PPM_10MHZ_100PPB, 4751_DANUBE_EXT_LNA.txt', 'gpsconfig_4751, 26MHZ_2PPM_10MHZ_100PPB, 4751_DANUBE_EXT_LNA, Factory_Low_SNR');



(This post was edited by FishMonger on May 14, 2010, 11:40 AM)


7stud
Enthusiast

May 14, 2010, 11:51 AM

Post #5 of 6 (1416 views)
Re: [zoomer003] need help with the parameters [In reply to] Can't Post


Quote
need help with the parameters - that executes and .exe

I recognize the words as English, but they are strung together in a haphazard sequence that makes no sense.


zoomer003
Novice

May 14, 2010, 12:25 PM

Post #6 of 6 (1415 views)
Re: [FishMonger] need help with the parameters [In reply to] Can't Post

Thank You Fishmonger .. It worked .. just had to make a slight adjustment
but thank you !!

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives