On 12/04/2018 17:40, Chris Johns<chr...@rtems.org> wrote >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.
thank you very much as you said i add "#! joel"as the first line ,and i change the mode to 777, but i still can not run the script, result as follows: ---------------------------------- [/scripts] # ./prfjog_1.txt Unable to execute /scripts/prfjog_1.txt [/scripts] # chmod 777 prfjog_1.txt [/scripts] # ./prfjog_1.txt Unable to execute /scripts/prfjog_1.txt ---------------------------------- best ben bin.w...@qkmtech.com From: Chris Johns Date: 2018-04-12 15:40 To: bin.w...@qkmtech.com; Users Subject: Re: rtems shell script On 12/04/2018 17:29, bin.w...@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
_______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users