I am calling a python script:
/bin/sh
python ~/Documents/Projects/Programming/Python/svg/svg2dxf.py $1 0
After running the script, I get a python command prompt ($) and it's only when I type "exit" at the command prompt that the script runs.
What am I doing wrong?
Change the following line:
/bin/sh
with ( shebang interpreter directive ):
#!/bin/sh
Otherwise, the new shell
instance is invoked; until the new shell is exit, next line is not executed.
You should remove the leading:
/bin/sh
Your current script does two things: 1) execute a new instance of /bin/sh ==> which gives your the shell $ sign
2) execute the python script
Your script should be:
python ~/Documents/Projects/Programming/Python/svg/svg2dxf.py $1 0
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.