I'm confused. Are you having a problem running enter.sh or cmd_proc_shell? It sounds like you are having problems with latter, but then there'd be no reason to mention the former.

Assuming your problem is with cmd_proc_shell, how do you want to run it? Specifically, do you need to capture its output, do you need to know its error code, do you want to wait for it to finish running before continuing, and are you on a Windows system or not?

If you don't need to capture its output and you don't mind waiting for it to finish running before continuing,

Unix: system('cmd_proc_shell', 'enter 0,1,0'); Windows system('cmd_proc_shell "enter 0,1,0"');

In unix, the quotes you passed to the shell aren't seen by the program. The shell splits the command into arguments, unquotes everything, and passes the arguments as an array. In Windows, it's the program's responsibility to handle its own command line parsing.


In reply to Re: How to avoid to launch a unix shell script in a perl script by ikegami
in thread How to avoid to launch a unix shell script in a perl script by bertigo

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.