This still is not working. The file "tabfile" is a shell script that created the file "FTPData.20010517.111754". I am trying to capture that echoed output and redirect it into a file. Might there be a better way to do this with a pipe or some other mechanism? Please advise :)
RESULT: $ ftp_flow.pl logfile = /tmp/ftp_flow.111753410117.log errfile = /tmp/ftp_flow.111753410117.err FTPData.20010517.111754 $ cat /tmp/ftp_flow.111753410117.log $ (the file is empty... it should contain "FTPData.20010517.111754" as the 1st line) CODE: # send output to file @args2 = ("$tabfile"); local(*LOGFILE); open (LOGFILE, ">$logfile") || die "could not open log\n"; select(LOGFILE); unless (system(@args2) == 0) { print STDERR "system(@args2) failed: $? $!\n"; return; } close(LOGFILE); print "foo1\n"; exit (0);

In reply to Re: Re: Help: STDOUT flaking out? by P0w3rK!d
in thread Help: STDOUT flaking out? by P0w3rK!d

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.