V
V
Vincent12017-01-19 15:54:33
linux
Vincent1, 2017-01-19 15:54:33

Freebsd shell script not starting. Why?

It does not start if I simply write in the console check.sh. If sh check.shit works.
Script rights:

-rwxr-xr-x  1 root      wheel   524B Jan 19 14:04 check.sh

This is how the script starts
#!/bin/sh
echo "script start" >> "/mylog"
...

/bin/sh is in the system and works
Everything is done under root

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Swartalf, 2017-01-19
@Vincent1

./check.sh

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question