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):

  1. move "scripts/" folder directory you're running script out of using "mv /path/to/scripts/ ."
  2. move customer script folder contains scripts/droidbox.py , run script there

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -