shell script problem
Joel Sherrill
joel at rtems.org
Mon Nov 19 13:54:30 UTC 2018
On Mon, Nov 19, 2018, 5:22 AM bin.wang at qkmtech.com <bin.wang at qkmtech.com
wrote:
> >Hi!
> >
> >- 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.)
> >- What are you trying to do? Where are you running the script and seeing
> the "cut off" at 128 characters?
> >
> >I don't see the script anywhere in any of the RTEMS repos yet (
> https://github.com/search?q=org%3ARTEMS+log_cmd&type=Code).
>
> hi
>
> rtems can run shell script .i just give my script.
>
> log_cmd and 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 .
>
> 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
>
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.
--joel
> best
> ben
> ------------------------------
> bin.wang at qkmtech.com
>
>
> *From:* Amaan Cheval <amaan.cheval at gmail.com>
> *Date:* 2018-11-19 19:23
> *To:* bin.wang <bin.wang at qkmtech.com>
> *CC:* users <users at rtems.org>
> *Subject:* Re: shell script problem
> Hi!
>
> - 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.)
> - What are you trying to do? Where are you running the script and seeing
> the "cut off" at 128 characters?
>
> I don't see the script anywhere in any of the RTEMS repos yet (
> https://github.com/search?q=org%3ARTEMS+log_cmd&type=Code).
>
> On Mon, Nov 19, 2018 at 4:10 PM bin.wang at qkmtech.com <bin.wang at qkmtech.com>
> wrote:
>
>> hi everyone:
>>
>> i use the shell script as follows
>>
>> ---------------------------------------------------------------------------
>> #! joel
>> date
>> log_cmd 1 8 0
>> 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"
>>
>> log_cmd 1 8 1
>> date
>>
>> ---------------------------------------------------------------------------
>>
>> the fourth line as follows has a problem , i can not get all part of the
>> line
>>
>> 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"
>>
>>
>> instead of
>>
>> i just get as follows,which cut off the last part. i think maybe the max
>> value is 128 .
>>
>>
>> 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
>>
>> how to change it to fit my situation?
>>
>> thank you very much
>>
>> best
>> ben
>>
>> ------------------------------
>> bin.wang at qkmtech.com
>> _______________________________________________
>> users mailing list
>> users at rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20181119/3bccfd75/attachment-0002.html>
More information about the users
mailing list