running a perl script.

Umut Arus umuta at sabanciuniv.edu
Wed Mar 14 16:00:36 CET 2007


Hello,

Another way, you could use "dos2unix /filename/" command. It will clean 
non-printable characters.

Regards.

Marc Powell wrote:

>  
>
>>-----Original Message-----
>>From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>>bounces at lists.sourceforge.net] On Behalf Of Mark Thompson
>>Sent: Wednesday, March 14, 2007 9:16 AM
>>To: nagios-users at lists.sourceforge.net
>>Subject: Re: [Nagios-users] running a perl script.
>>
>>The file was never on a win machine here. I opened the file with
>>    
>>
>kwrite
>  
>
>>and vi and don't see the ^M in the text.
>>
>>    
>>
>
>They _are_ there or you wouldn't see the error. The problem is that it's
>not a printable character (carriage return) so kwrite and vi just aren't
>showing it. Try 'vi -b filename'. That will put vi in binary mode which
>will display everything in the file as a printable character (^M for
>[CTRL-M] in this case). vim, often used as a replacement for vi these
>days, seems to be better at automatically setting binary mode when
>necessary from my experience.
>
>--
>Marc
>
>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys-and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>Nagios-users mailing list
>Nagios-users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nagios-users
>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
>::: Messages without supporting info will risk being sent to /dev/null
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070314/f5a67f19/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list