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

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -