Logo 
Search:

Unix / Linux / Ubuntu Answers

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds
  on Jan 21 In Unix / Linux / Ubuntu Category.

  
Question Answered By: Adah Miller   on Jan 21

Quote 'The Bash & (ampersand) is a builtin control operator used to
fork processes. From the Bash man page, "/If a command is terminated by
the control operator &, the shell executes the command in the background
in a subshell/".'

So the first part of your script becomes

#!/bin/sh

# cd to pythonfc and run gedit
cd ~/pythonfc
gedit &

However, I'm not certain whether or not the processes end when the
script ends, so you might want to leave the & off the final gedit.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Running independent script entries concurrently Or get search suggestion and latest updates.