Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Perl 

Want to make responses input into .txt file

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.
Which operating system are you running this on?
(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
(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_file

Or if you want the output to be displayed and written to a file then use
Code
./programname | tee text_file


Possibly Related Threads...
Thread / Author Replies Views Last Post
by MarwenMar 29, 2022 08:39 AM 0 123 Mar 29, 2022 08:39 AM
Last Post: Marwen
by ronnyfhtgApr 17, 2018 12:32 AM 1 113 Apr 17, 2018 12:32 AM
Last Post: Vanagander
[Help] by Lorenzo GucciOct 28, 2016 07:14 AM 0 127 Oct 28, 2016 07:14 AM
Last Post: Lorenzo Gucci