VeeDubb Posted January 15, 2004 Report Share Posted January 15, 2004 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. Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted January 15, 2004 Report Share Posted January 15, 2004 #!/bin/bash unison & /opt/Qtopia/bin/qtopiadesktop & [elvis voice] thank ya...thank ya ver' much [/elvis voice] Quote Link to comment Share on other sites More sharing options...
liquidzoo Posted January 15, 2004 Report Share Posted January 15, 2004 #!/bin/bash<!--QuoteEBegin--><!--QuoteEBegin-->unison &<!--QuoteEBegin-->/opt/Qtopia/bin/qtopiadesktop & [elvis voice] thank ya...thank ya ver' much [/elvis voice] Beat me to it Quote Link to comment Share on other sites More sharing options...
VeeDubb Posted January 15, 2004 Author Report Share Posted January 15, 2004 Thank youboth. I knew it should be simple. Quote Link to comment Share on other sites More sharing options...
Cannonfodder Posted January 15, 2004 Report Share Posted January 15, 2004 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.. Quote Link to comment Share on other sites More sharing options...
Qchem Posted January 15, 2004 Report Share Posted January 15, 2004 If we're being like that..... When running a job in the foreground you can do Ctrl-Z and then bg to background it too.... :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.