1

I have an sh file which executes a php file. I'm trying to run it without using sh command. I want to run it using the command test.sh and not "sh test.sh".

How do I do that?

0

1 Answer 1

3

Add a hashbang as the first line of the script:

#!/bin/sh

Then set it as executable:

chmod +x test.sh

Then you should be able to run it with ./test.sh.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.