Thanks.
(ps. The Tiny link was broken so I looked into http://perldoc.net/Capture/Tiny.pod hoping that's what you meant to refer)

I maybe a bit lost honestly.

I'll try to put it this way. I'm using a signal analyzer (SA) as a part of my testing on a daily basis with some other eqiupments, and I'm trying to make a PERL script to automate the repeititions.

Here's what I found from the manufacturer's application note.

--------------------------------
Command-Line Operation

To speed up frequently used commands (e.g. taking screenshots only from one instrument), you can pass the command via the command line to GPIBShot. The following commands are available:

/{Number between 1 and 31} set IEEE address
/COLOR switch to color mode
/BW switch to b/w mode
/SCREEN take a screen shot
/TRACE{1..4} read out trace data
/HIDE supress trace display on PC
/SHOW shows window again
/END terminates the program
/NAME=<name> specify the name of the file to generate

All combinations ot the commands are possible. The command line is parsed serial.

Example: Calling "GPIBSHOT.EXE /HIDE /20 /COLOR /NAME=IMG1 /SCREEN /NAME=DAT1 /TRACE2 /END" takes a colored hardcopy, stored as "IMG1.WMF", and stores the data of trace 2 with the filename "DAT1.TXT" of IEEE device 20 without displaying the graphical user interface.
--------------------------------

On a second thought, can I just call the said example "gpibshot.exe /hide blah blah blah..." from PERL using the system funcion or one of the two methods you provided?

I was initially thinking calling the command prompt tool (cmd), then call the said command. But it seems like I can just straightly call the command from PERL with the right method?


In reply to Re^2: How to call cmd line within PERL? by bill5262
in thread [Newbie Question] How to call cmd line within PERL? by bill5262

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.