PDA

View Full Version : Launch programs from script



MathUHenry
November 6th, 2009, 01:45 AM
I want to use a script to launch two files that are related, exempli gratia:

#!/bin/sh
gedit /home/ScilabNotes.txt
scilab

but the script is linear. It opens my note page and waits for me to close my notes before it opens Scilab. I want them both to open at the same time.

I think what I need to do is a fork. The documentation of forks, so far, make no sense to me. Am I on the right track.

bapoumba
November 6th, 2009, 06:55 AM
Moved to PT.

diesch
November 6th, 2009, 06:59 AM
#!/bin/sh
gedit /home/ScilabNotes.txt &
scilab

MathUHenry
November 6th, 2009, 08:29 PM
Awesome! Thanks Diesch.