rtems shell script

Chris Johns chrisj at rtems.org
Thu Apr 12 07:40:39 UTC 2018


On 12/04/2018 17:29, bin.wang at qkmtech.com wrote:
> hi everyone:
> this is my shell cmdline
> -----------------------------------------------------
> [/] # cd scripts
> [/scripts] # ls
> prfjog.txt
> [/scripts] # prfjog.txt
> Unable to execute /scripts/prfjog.txt
> [/scripts] # ./prfjog.txt
> Unable to execute /scripts/prfjog.txt
> ---------------------------------------------------------------
> i do not know whether rtems shell can execute a script?

It can. You need to add "#! joel" as the first line and you need to set an
appropriate the execute bit, that is user, group or other.

Chris



More information about the users mailing list