Jump to content

Very simple shell script qestion


Recommended Posts

Okay, this 'should' be realy earsy for someone out there. I have the following ultra simple shell script.

#!/bin/bash

unison
/opt/Qtopia/bin/qtopiadesktop

 

That's it. Here is the problem. I want it to runn both commands at once. Or at least, run the second command as soon as it's done running the first and here's what I mean.

 

Both of these are programs that run in X. I want to run them at the same time, but when I double click this script, I only get the first one. The second one doesn't open untill I close the first.

 

Thanks in advanced.

Link to comment
Share on other sites

Just to be a "show it all" like those two..

 

Basically you are running the applications in the background (ampersand symbol) vs the foreground.

 

If you run a foreground process and press ctrl-z twice it goes to background (manual method)

 

After this, type jobs to see a list of background processes. Type fg in the console and the background process becomes a foreground process again.

 

Read up on it if you are interested..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...