RichStevenson
Member
Trying to write a script and am having no luck getting it to run the way I want. So I've started from the very beginning and am now trying to write a simple Hello World script. Here's what I have:
#!/system/bin/sh
echo Hello World
Named the file vpndns and saved it to \system\xbin
\system\xbin is in my path. Verified with the set command.
When I run it as:
vpndns
I get Permission Denied so I cd to \system\xbin and chmod 755 vpndns.
Now when I run it I get "not found".
If I change to the \system\xbin\ I receive the same error. But if I run it as:
sh vpndns
it runs.
My intent was to run it without the 'sh' from any dir. Can anyone shed some light on what I'm doing wrong?
Thanks
#!/system/bin/sh
echo Hello World
Named the file vpndns and saved it to \system\xbin
\system\xbin is in my path. Verified with the set command.
When I run it as:
vpndns
I get Permission Denied so I cd to \system\xbin and chmod 755 vpndns.
Now when I run it I get "not found".
If I change to the \system\xbin\ I receive the same error. But if I run it as:
sh vpndns
it runs.
My intent was to run it without the 'sh' from any dir. Can anyone shed some light on what I'm doing wrong?
Thanks