I am writing a bash script to automate several actions:
#!/bin/bash
echo "Hello, World"
NAME="${1}"
PATH="${2}"
echo $NAME
echo $PATH
eval "ls"
I am going to call ls, ffmpeg
and a lot of other commands.
However running my script gives me the following error:
/var/www/html# ./life.sh test midhand.mp4
+ ./life.sh test midhand.mp4
Hello, World
test
midhand.mp4
./life.sh: line 9: ls: command not found
How come? why not found? Maybe I should import a directory with scripts?