<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I wasn’t suggesting the string(3) C function
but rather the strings(1) command.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Usage is quite simple: <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>strings <file>”<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Where file would be the one you were
trying to see text in e.g. “strings .torrent”.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Of course the output you get may not be
quite as simple (your average binary gives all sorts of random character lines)
and as I noted may not be what you need to do the validation you want.
However, it may be of help depending on what you’re looking for and how it is
stored. They don’t allow torrents here (tried explaining it saves bandwidth
to them but they don’t seem to undersand) so I don’t have a .torrent to play
with. Doing “strings .torrent |grep <text>” for text you expect to see
in the .torrent might be what you need.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
ale-bounces@ale.org [mailto:ale-bounces@ale.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Marc Ferguson<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, May 09, 2011 1:50 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Atlanta
Linux Enthusiasts</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [ale] Creating and
Verifying Torrent Files?</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Mon, May 9, 2011 at 12:20 PM, Lightner, Jeff <<a
href="mailto:JLightner@water.com">JLightner@water.com</a>> wrote:<o:p></o:p></span></font></p>
<div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>
<div link=blue vlink=blue>
<div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>The “strings” command run against a file (including binaries) will
show any text it contains. Not sure if that would give you enough
to do the validation you seek though.</span></font><o:p></o:p></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'> </span></font><o:p></o:p></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;font-weight:
bold'>From:</span></font></b><font size=2 face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma'> <a href="mailto:ale-bounces@ale.org" target="_blank">ale-bounces@ale.org</a>
[mailto:<a href="mailto:ale-bounces@ale.org" target="_blank">ale-bounces@ale.org</a>]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Marc Ferguson<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, May 09, 2011 12:10
PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Atlanta
Linux Enthusiasts</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> [ale] Creating and
Verifying Torrent Files?</span></font><o:p></o:p></p>
</div>
<div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Trebuchet MS"><span style='font-size:12.0pt;font-family:"Trebuchet MS"'>Hey
Fellas,<br>
<br>
I'm trying to create a torrent file via CLI, but I'm stuck after creating the
file. I want to verify that it created the file correctly, but I don't want to
verify by uploading the file to my public server, use another torrent client,
etc. Is there a way I can read the .torrent file via CLI? I tried using
"less" and "nano", but it told me it's a binary file so
it's all gobbly goop.<br>
<br>
I used transmission-create. Thanks for any help.<br>
<br>
I posted this same question on Fedora's Forum:<br>
<a href="http://forums.fedoraforum.org/showthread.php?p=1469454#post1469454"
target="_blank">http://forums.fedoraforum.org/showthread.php?p=1469454#post1469454</a><br
clear=all>
</span></font><br>
-- <br>
<b><font face=Georgia><span style='font-family:Georgia;font-weight:bold'>Marc
Ferguson</span></font></b><font face=Georgia><span style='font-family:Georgia'><br>
<br>
Registered Linux User #410978<br>
<a href="http://www.fergytech.com" target="_blank">www.fergytech.com</a> | <a
href="http://www.digitalalias.net" target="_blank">www.digitalalias.net</a><br>
<br>
<i><span style='font-style:italic'>"When life gives me lemons... I make
Linuxaide, hmm good stuff!"</span></i></span></font><o:p></o:p></p>
</div>
</div>
</div>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Proud partner. Susan G. Komen for the Cure.</span></font> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><i><font size=1 color=green face=Arial><span
style='font-size:7.5pt;font-family:Arial;color:green;font-style:italic'>Please
consider our environment before printing this e-mail or attachments.</span></font></i>
<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>----------------------------------<br>
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential
information and is for the sole use of the intended recipient(s). If you are
not the intended recipient, any disclosure, copying, distribution, or use of
the contents of this information is prohibited and may be unlawful. If you have
received this electronic transmission in error, please reply immediately to the
sender that you have received the message in error, and delete it. Thank you.<br>
----------------------------------</span></font><font size=1 face="Courier New"><span
style='font-size:9.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>
</div>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><o:p></o:p></span></font></p>
</blockquote>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
Thanks for the suggestion, Jeff. I tried using _string_, but I couldn't totally
figure it out. I thought about it some more and lo and behold there's a
_transmission-show_ command that does exactly what I'm looking for.<br
clear=all>
<br>
-- <br>
</span></font><b><font face=Georgia><span style='font-family:Georgia;
font-weight:bold'>Marc Ferguson</span></font></b><font face=Georgia><span
style='font-family:Georgia'><br>
<br>
Registered Linux User #410978<br>
<a href="http://www.fergytech.com" target="_blank">www.fergytech.com</a> | <a
href="http://www.digitalalias.net" target="_blank">www.digitalalias.net</a><br>
<br>
<i><span style='font-style:italic'>"When life gives me lemons... I make
Linuxaide, hmm good stuff!"</span></i></span></font><o:p></o:p></p>
</div>
</body>
</html>