rtems shell script

bin.wang at qkmtech.com bin.wang at qkmtech.com
Thu Apr 12 07:58:33 UTC 2018


On 12/04/2018 17:40, Chris Johns<chrisj at 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.wang at qkmtech.com
 
From: Chris Johns
Date: 2018-04-12 15:40
To: bin.wang at qkmtech.com; Users
Subject: Re: rtems shell script
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20180412/473fc654/attachment-0002.html>


More information about the users mailing list