Allow commands to run after backgrounding django runserver command in a bash script?
问题 I'm writing a 'simple' script to start up the django server, background it then start up firefox while I dev. I've seen the </dev/null & trick and that works on the command line. But when I use it in my script it still hangs on the server starting. Backgrounding with ctrl-z and the bg command only backgrounds the script and not the command. Is there a way I can pass django a 'Don't hog input' flag? Or I can background it inside the script in some way other than putting & at the end of it? Or