Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. azoulay

    Write all STDIN lines into a file

    Ohhh ok I understand now !!! I was not doing a CTRL-D, I was doing a CTRL-Z and the consequence was that the file it is suppose to write in stayed empty. You're right, my code does work now that I do a CTRL-D. Thank you so much for this nuance I did not know. Regards,
  2. azoulay

    Write all STDIN lines into a file

    > Ctrl-D on a blank line. I don't understand the difference of my code and MillerH code in regards to the signal EOF to STDIN. Where does MillerH include the signal EOF to STDIN in his code ? Regards
  3. azoulay

    Write all STDIN lines into a file

    > "...forgot to signal EOF to STDIN" what is that exactly? How do you signal EOF? thanks again
  4. azoulay

    Write all STDIN lines into a file

    Thanks a lot MillerH, your code works perfectly, it does exactly what I was expecting. For rovf comment, I work for an ISP and we need to take some show output from Cisco equipments and copy and paste SOME of the output to a file. It's just quicker/easier to do this this way. Thanks again...
  5. azoulay

    Write all STDIN lines into a file

    I want to write all(5) user lines from STDIN into a file. This is my code, it doesn't work: ================================ #!/usr/perl5/bin/perl open (TMPMSG,">tempFile.txt"); while (<STDIN>) { print TMPMSG $_; } close (TMPMSG); ================================ I tried many...

Part and Inventory Search

Back
Top