Re: output of a command to a file

2001-07-24 Thread Abdulaziz Ghuloum
Hello, There is nothing wrong in your perl program. The problem is that not all nic servers produce the same output. The line with "created on" exists for some names only, not all. I tried yahoo.com which had it and netscape.com which didn't have it. So, you should figure out a better way to

RE: output of a command to a file

2001-07-24 Thread Venkat Mohan
This will work. open outfile ">>outfile.txt"; open cmdoutput " $command |"; while() { print outfile; } close cmdoutput; close outfile -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 12:48 PM To: Perl Beginners Subject: output of a comman

RE: output of a command to a file

2001-07-24 Thread Steve Swords
the man page for the open() function has a section on doing exactly what your asking for... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]