linux - call a shell script(command line tool) inside another shell script -
i using tool called droidbox experiment. tool has shell script droidbox.sh can invoke through terminal.
droidbox.sh takes 1 argument i.e path of apk
usage: ./droidbox.sh apk
i want call droidbox.sh through shell script.
i wrote shell script like
#!/bin/bash arg1="/home/xxx/a.apk" /home/xxx/droidbox_4.1.1/droidbox.sh "$arg1"
i getting error says
python: can't open file 'scripts/droidbox.py': [errno 2] no such file or directory
can point out doing wrong?
this error because you're running script in different folder folder houses "scripts/droidbox.py" file. can fix in following way(s):
- move "scripts/" folder directory you're running script out of using "mv /path/to/scripts/ ."
- move customer script folder contains scripts/droidbox.py , run script there
Comments
Post a Comment