0

I have a bash script :

#!/bin/bash
./buind/env/hue shell -i python -c 'exec open("my.py").read,{"pars":[$1,$2]})'

the program gives error $1,$2 invalid syntax it doesnt take my args.( i try ${1},${2} or with double quotes)

When i echo my params in sh it shows my params correct.

i run sh : ./my.sh "mypar1" "mypar2"

How can i solve this problem?

CompEng
  • 7,161
  • 16
  • 68
  • 122

0 Answers0