Dear Monks

I'm writing a big (complex) program (which I shouldn't have done in the first place) but now I have to continue and finish it.

Anyway, when I try to execute a program from within my script, for example like
system("$prog -f $fname ") ;

It executes it but for some reason it never seems to leave this call. First I blamed the program I was calling, but after running it, without any problems, using a small test script and also the command line, it became crystal clear and I realized it had to do with me, myself and my script :(

It only seems to happen with this program, because I can call ls without problems.....
So, all this stuff is new for me, which means I don't know what information can be relevant to post here!

If there is a monk outside that has a clue, I would really like to hear it!!!

Thanks a lot
LuCa

ps I also tried to call the program with open and with `....`, but with the same result

In reply to script hangs after executing program by jeanluca

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.