linux - How to Execute Command stored in variable from a file -


cmd="cd /home/pi"

$cmd , eval "$cmd"

this working in cli interested run command variable stored in file. in file wrote

$cmd , eval "$cmd"

and execute file cli shows error. solution??


Comments

Popular posts from this blog

java - Checkbox item adds to spinner -

php - mySQL problems with this code? -

C# MVC AngularJS -