From: "Anthony Beaman" <[EMAIL PROTECTED]> > Hi! I'm sure this is simple and I'm overlooking something but here > goes. I'm trying to write a script that will ping a machine but print > it's results to a file (in Wordpad; I'm using NT) and the file will > open and show the results. I'm able to ping and I'm able to direct it > to a file but it's not launching the file for view. In other words, my > goal is to enter the .pl file in DOS but have a file (wordpad) open up > and show the results. Any ideas? Thanks!
Something like this should work: system ("start $filename"); or system ("wordpad $filename"); > (If this works, is it possible to show it writing to file? For > example, when you ping a machine, you see each ping one at a time. Can > I do this to my open file instead of a file that opens with the end > result?) I don't think WordPad will test whether the file was updated all the time. Some editors test the file modification time and realod the file when you switch to them, but wordpad will not be the case IMHO. You will have to find something else or use Tk or gTk or wxPerl or Win32::GUI to create your own window. Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]