<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }div.foxdiv20181120092146477322 { }body { font-size: 10.5pt; font-family: ΢ÈíÑźÚ; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div>hi joel:</div><div><br></div><div><span></span>thank you very much</div><div><br></div><div>i think the <span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">shell command itself exceeds the line buffer limit,this limit maybe 128 byte because the number of my command string is 128 ,</span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">where can i change the line buffer limit? or do i need change my command to fit this line buffer limit? </span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">best </span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">ben</span></div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>bin.wang@qkmtech.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:joel@rtems.org">Joel Sherrill</a></div><div><b>Date:</b> 2018-11-19 21:54</div><div><b>To:</b> <a href="mailto:bin.wang@qkmtech.com">bin.wang</a></div><div><b>CC:</b> <a href="mailto:amaan.cheval@gmail.com">Amaan Cheval</a>; <a href="mailto:users@rtems.org">rtems-users@rtems.org</a></div><div><b>Subject:</b> Re: Re: shell script problem</div></div></div><div><div class="FoxDiv20181120092146477322"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 19, 2018, 5:22 AM <a href="mailto:bin.wang@qkmtech.com">bin.wang@qkmtech.com</a> <<a href="mailto:bin.wang@qkmtech.com">bin.wang@qkmtech.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div>
<div><span></span>>Hi!<div>></div><div>>- Where is this shell script from? (It doesn't really look like a shell script to me in any case, nor something you'd run in the RTEMS Shell.)</div><div>>- What are you trying to do? Where are you running the script and seeing the "cut off" at 128 characters?</div><div>></div><div>>I don't see the script anywhere in any of the RTEMS repos yet (<a href="https://github.com/search?q=org%3ARTEMS+log_cmd&type=Code" target="_blank" rel="noreferrer">https://github.com/search?q=org%3ARTEMS+log_cmd&type=Code</a>).</div></div>
<div><br></div><div>hi </div><div> </div><div>rtems can run shell script .i just give my script. </div><div><br></div><div>log_cmd and <span style="font-size:10.5pt;line-height:1.5;background-color:window">log_idn is the shell command which i defined ,so i can use this script and do not need to input every command every time .</span></div><div><br></div><div>now i have no time to find the solution in the source. so i ask other people which is familar with the rtems shell script</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The commands are your own and not producing the output you expect. Unless the shell command itself exceeds the line buffer limit, it is an issue on your side. Break at the entry point to your command and print the arguments.</div><div dir="auto"><br></div><div dir="auto">--joel </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div><div><br></div><div>best </div><div>ben</div><hr style="width:210px;height:1px" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div><a href="mailto:bin.wang@qkmtech.com" target="_blank" rel="noreferrer">bin.wang@qkmtech.com</a></div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT:8px;PADDING-LEFT:8px;FONT-SIZE:12px;FONT-FAMILY:tahoma;COLOR:#000000;BACKGROUND:#efefef;PADDING-BOTTOM:8px;PADDING-TOP:8px"><div><b>From:</b> <a href="mailto:amaan.cheval@gmail.com" target="_blank" rel="noreferrer">Amaan Cheval</a></div><div><b>Date:</b> 2018-11-19 19:23</div><div><b>To:</b> <a href="mailto:bin.wang@qkmtech.com" target="_blank" rel="noreferrer">bin.wang</a></div><div><b>CC:</b> <a href="mailto:users@rtems.org" target="_blank" rel="noreferrer">users</a></div><div><b>Subject:</b> Re: shell script problem</div></div></div><div><div class="m_3451607960602458903FoxDiv20181119191723721075"><div dir="ltr"><div dir="ltr">Hi!<div><br></div><div>- Where is this shell script from? (It doesn't really look like a shell script to me in any case, nor something you'd run in the RTEMS Shell.)</div><div>- What are you trying to do? Where are you running the script and seeing the "cut off" at 128 characters?</div><div><br></div><div>I don't see the script anywhere in any of the RTEMS repos yet (<a href="https://github.com/search?q=org%3ARTEMS+log_cmd&type=Code" target="_blank" rel="noreferrer">https://github.com/search?q=org%3ARTEMS+log_cmd&type=Code</a>).</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 19, 2018 at 4:10 PM <a href="mailto:bin.wang@qkmtech.com" target="_blank" rel="noreferrer">bin.wang@qkmtech.com</a> <<a href="mailto:bin.wang@qkmtech.com" target="_blank" rel="noreferrer">bin.wang@qkmtech.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div>
<div><span></span>hi everyone:</div><div><br></div><div>i use the shell script as follows</div><div>---------------------------------------------------------------------------</div>
<div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">#! joel<br>date<br>log_cmd 1 8 0<br>log_idn "p-0-0505.0.17" "p-0-0506.0.17" "p-0-0507.0.17" "p-0-0508.0.17" "p-0-0505.0.18" "p-0-0506.0.18" "p-0-0507.0.18" "p-0-0508.0.18" <br>log_cmd 1 8 1<br>date</span></div><div>---------------------------------------------------------------------------</div><div><br></div><div>the fourth line as follows has a problem , i can not get all part of the line</div><div><br></div><div>log_idn "p-0-0505.0.17" "p-0-0506.0.17" "p-0-0507.0.17" "p-0-0508.0.17" "p-0-0505.0.18" "p-0-0506.0.18" "p-0-0507.0.18" "p-0-0508.0.18" </div><div><br></div><div>instead of </div><div><br></div><div>i just get as follows,which cut off the last part. i think maybe the max value is 128 .</div><div><br></div><div>log_idn "p-0-0505.0.17" "p-0-0506.0.17" "p-0-0507.0.17" "p-0-0508.0.17" "p-0-0505.0.18" "p-0-0506.0.18" "p-0-0507.0.18" "p-0-05</div><div><br></div><div>how to change it to fit my situation?</div><div><br></div><div>thank you very much</div><div><br></div><div>best</div><div>ben</div><div><br></div><hr style="width:210px;height:1px" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div><a href="mailto:bin.wang@qkmtech.com" target="_blank" rel="noreferrer">bin.wang@qkmtech.com</a></div></div></span></div>
</div>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank" rel="noreferrer">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div>
</div></div></blockquote>
</div>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank" rel="noreferrer">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div></div>
</div></div></blockquote>
</body></html>