ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activetcl
activetcl
[Activetcl] wierd char in puts
by Gene Osteen other posts by this author
Mar 11 2008 11:40AM messages near this date
view in the new Beta List Site
[Activetcl] ftp on HP-UX | Re: [Activetcl] wierd char in puts
All,

            I had a very strange problem today. While trying to put the
proper end of line in a file I wrote the following line of code 

puts  -nonewline $sql_file "exec sp_UpdateUpdates '${db}',\13\10"

 

This produced a line that had hex 0B 08 at the end instead of hex 0D 0A
like I expected

 

So, I changed the code to 

puts  -nonewline $sql_file "exec sp_UpdateUpdates '${db}',\15\12"

 

I then got the hex 0D 0A that I was expecting.

 

I am running on HP ALPHA-SERVER on Tru64

 

Gene Osteen

803-649-7486

 

Confidentiality Notice: The electronic mail and/or documents
accompanying this transmission contain confidential information
belonging to the sender, which is legally privileged. The information is
intended only for the individual's) or entity named above. If you are
not the intended recipient you are hereby notified that any disclosure,
copying, distribution or taking of any action in reliance on the
contents of this information is strictly prohibited. If you have
received this transmission in error, please immediately notify us by
email or telephone to arrange for return or to destroy the original
document. Thank You.

 

 
Thread:
Gene Osteen
Michael Barth

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved