<div dir="ltr">My main goal is to make sure someone doesn&#39;t run this command and pass it somethign like :     &quot;15361; rm -rf ~/*&quot; <div>I will need another version where XXXXX can be any alpha-numeric character too but the main concern is the moron doing something stupid.  </div>

<div><br></div><div>Robert</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 22, 2014 at 4:40 PM, Ed Cashin <span dir="ltr">&lt;<a href="mailto:ecashin@noserose.net" target="_blank">ecashin@noserose.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">I&#39;m not at a keyboard now, but strtol could do it all if you provide a non-NULL end pointer. (That will make sense on reading the strtol man page.) Just subtract the end from the start and compare to 5,after specifying base ten. </p>



<div class="gmail_quote"><div><div class="h5">On May 22, 2014 6:17 PM, &quot;Robert L. Harris&quot; &lt;<a href="mailto:robert.l.harris@gmail.com" target="_blank">robert.l.harris@gmail.com</a>&gt; wrote:<br type="attribution">

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr"><div><br></div>Anyone have a very simple C program source that given a command of :<div><br></div><div>./Validate XXXXX</div><div><br></div><div><br></div><div>it will verify that XXXXX is a 5 digit integer and then execute </div>




<div><br></div><div>system( &quot;/bin/touch XXXXX&quot;);</div><div><br></div><div><br></div><div><br></div><div>There&#39;s much more to it but I&#39;m hung up on this.  Unfortunately I&#39;m not a C person.</div><div>



<br>
</div><div>Robert</div><div><br><div><div><br></div>-- <br>:wq!<br>---------------------------------------------------------------------------<br>Robert L. Harris<br><br>DISCLAIMER:<br>      These are MY OPINIONS             With Dreams To Be A King,<br>




       ALONE.  I speak for                      First One Should Be A Man<br>       no-one else.                                     - Manowar
</div></div></div>
<br></div></div>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">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><br>
<br></blockquote></div>
<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><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>:wq!<br>---------------------------------------------------------------------------<br>Robert L. Harris<br><br>DISCLAIMER:<br>      These are MY OPINIONS             With Dreams To Be A King,<br>

       ALONE.  I speak for                      First One Should Be A Man<br>       no-one else.                                     - Manowar
</div>