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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Translate this unix command ;o)

Status
Not open for further replies.

LinuXelite

Programmer
Joined
Jun 21, 2002
Messages
150
Location
CA
Hi!

Can someone translate this unix command into dos-command | win32 please?


tail -f c:\log.txt > perl c:\line2mysql.pl

(real-time mysql logging)

Thank you
Frank
 
The only part of that which requires translation would be tail -f, and there are a few utils out there that do this, but nothing inherent in DOS.


There is also a version of less that has been ported to DOS that can do much the same thing with a -F switch.


Or maybe you could do the tail -f within Perl;

...of course, you'd need Perl for DOS...

Hope this helps CitrixEngineer@yahoo.co.uk
 
PERL4DOS! THAT'S BRILLANT!

File::Tail
Perl extension for reading from continously updated files


My perl script will work under my w2k server (I wish it was a linux one) and notify my VB program by sending a ping to a socket!

THANK YOU VERY MUCH!!!
 
DAMMIT THIS MODULE DOESNT WORK UNDER WIN2k!

DAMN WINDOWS!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top