Click here to get back home

monitor for sleeping processes

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
monitor for sleeping processes lee_h_shannon 12-23-2004
Get Chitika Premium
Posted by lee_h_shannon on December 23, 2004, 10:03 am
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
spawn and monitor multiple processes - report back when all have completed January 24, 2005, 2:11 pm
log monitor September 14, 2006, 10:04 am
How to monitor changes in a directory November 9, 2006, 5:13 pm
fastest way to monitor a dir November 7, 2008, 9:06 am
Can a perl script monitor another? May 17, 2005, 2:31 pm
Writing a system log monitor March 27, 2007, 5:45 pm
Perl to monitor server stats October 13, 2004, 11:44 am
How to monitor a process in system call October 22, 2004, 9:46 am
Monitor a Serial Port (Win2k) December 1, 2004, 2:44 am
Re: Can I monitor the execution of a perl script September 2, 2006, 8:59 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap