Two commands in one script ubuntu terminal -


i have 2 commands:

#!/bin/bash  python /srv/django/manage.py shell; execfile('/home/usr/myscript.py') 

i want use them in 1 script scr.sh. is, errors.

commanderror: command doesn't accept arguments
/home/usr/project.sh: line 7: syntax error near unexpected token `'/home/usr/myscript.py''

where myscript.py code want running when python shell appears. how go achieving this?

thanks!

what happening here ';' symbol wait until performed/run in shell. correct syntax

#!/bin/bash  python /srv/django/manage.py shell <<eof\ execfile('myscript.py') eof 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -