Re: sending output to file and terminal

2007-03-29 Thread tom arnall
On Thursday 29 March 2007 01:31, Boga Srinivas wrote: > Hi, > > I think you do not have that perl module installed. > > You can install it from the following link > > http://search.cpan.org/~dagolden/Tee-0.13/lib/Tee.pod > > > You can downlo

RE: sending output to file and terminal (in Unix use "tee")

2007-03-29 Thread Tilley, Matthew B
If you are on a Unix platform, you can use "tee" in your script to direct output to two places at the same time. - Matt -Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 2:17 AM To: Perl Beginners Subject: Re: sending output t

Re: sending output to file and terminal

2007-03-29 Thread Boga Srinivas
Hi, I think you do not have that perl module installed. You can install it from the following link http://search.cpan.org/~dagolden/Tee-0.13/lib/Tee.pod You can download the Tee-0.13.tar.gz

Re: sending output to file and terminal

2007-03-28 Thread lakshmi priya
Hi, Thanks for your prompt reply, I have no idea how to use perl modules. Could you please help. I tried using use IO::Tee; use IO::Handle; but i got an error saying Can't locate IO/Tee.pm in @INC () please help On 3/29/07, Boga Srinivas <[EMAIL PROTECTED]> wrote: Hi lakshmi, I

Re: sending output to file and terminal

2007-03-28 Thread Jason Novinger
I've never used the Tee module, so I don't know. But IO::Handle seems to be a built-in module on most distros. Try taking the IO:Tee out and trying the code I sent. Let me know if that doesn't work, Jason On 3/29/07, lakshmi priya <[EMAIL PROTECTED]> wrote: Hi, Thanks for your prompt rep

Re: sending output to file and terminal

2007-03-28 Thread John W. Krahn
lakshmi priya wrote: > Hi all, Hello, > I have written a perl script that prints the output to the terminal. I > also want to write the output to a file. So, what I have done is write the > output to a file and then print the file. I was just wondering if there any > way to write to both - t

Re: sending output to file and terminal

2007-03-28 Thread Boga Srinivas
Hi lakshmi, I think we can use the "Tee" module for that. http://search.cpan.org/~dagolden/Tee-0.13/lib/Tee.pod -srini lakshmi priya wrote: Hi all, I have written a perl script that prints the output to the terminal. I also want to write the output to a file. So, what I have done is w

Re: sending output to file and terminal

2007-03-28 Thread Jason Novinger
On 3/29/07, lakshmi priya <[EMAIL PROTECTED]> wrote: Hi all, I have written a perl script that prints the output to the terminal. I also want to write the output to a file. So, what I have done is write the output to a file and then print the file. I was just wondering if there any way to

Re: sending output to file

2006-07-28 Thread tom arnall
On Thursday 27 July 2006 05:02 am, Sayed, Irfan (Irfan) wrote: > Hi All, > > I need to send / print / write the output of one command to a file > through perl script > > can anybody plz help. could you give us an example of a command whose output you would like to send to a file? tom arnall nort

Re: sending output to file

2006-07-27 Thread Mumia W.
On 07/27/2006 09:20 AM, Sayed, Irfan (Irfan) wrote: Hi All, I need to send / print / write the output of one command to a file through perl script can anybody plz help. Regards Irfan. The Perl documentation which you've already read shows you how to do this. As reminders, look u

Re: sending output to file

2006-07-27 Thread Beginner
On 27 Jul 2006 at 22:20, Sayed, Irfan (Irfan) wrote: > I need to send / print / write the output of one command to a file > through perl script > > can anybody plz help. deja vu...didn't I see this 2 hours ago! perldoc -q system or perlfaq8#how_can_i_capture_stderr_from_an_external_command

Re: sending output to file

2006-07-27 Thread Prabu
Sayed, Irfan (Irfan) wrote: Hi All, I need to send / print / write the output of one command to a file through perl script can anybody plz help. Regards Irfan. Hope this helps perl -e 'print `command > file`;' Example: perl -e 'print `ls -l > output`;' -- Prabu.M.A When I was b