![]() |
|
[Perl] Want to make responses input into .txt file - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5) +---- Thread: [Perl] Want to make responses input into .txt file (/showthread.php?tid=3351727) |
Want to make responses input into .txt file - Militia - Mar 24, 2013 I have a program that i want to run and the respones would input into a text file. I don't think it is that hard maybe just a one line thing the the file needs. * - g4143 - Mar 24, 2013 Which operating system are you running this on? * - Militia - Mar 24, 2013 (Mar 24, 2013 11:10 AM)g4143 Wrote: Which operating system are you running this on? We are using linux if that helps, please add me if you know what to do * - g4143 - Mar 24, 2013 (Mar 24, 2013 01:37 PM)Militia Wrote: We are using linux if that helps, please add me if you know what to do Well if you want the output to be written to a file then use something like below. Code ./programname > text_fileOr if you want the output to be displayed and written to a file then use Code ./programname | tee text_file |