Find the answer to your Linux question:
Results 1 to 3 of 3
Hello. I have a little problem when scripting (BASH shell). You see, what I am trying to do is write a script that begins several apps at once. As it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    9

    Trouble executing multiple commands simultaniously


    Hello.
    I have a little problem when scripting (BASH shell). You see, what I am trying to do is write a script that begins several apps at once. As it stands, a simple script of mine that begins xmms, gmplayer and aterm might look something like this:

    -----

    #!/bin/sh
    xmms
    gmplayer
    aterm

    -----

    Now, what happens when I run this in X , as you vets might imagine, is xmms starts, but the gmplayer and aterm won't, at least until I kill xmms. What I'd really like, though, is for all three apps to start at once. Any help with this would be met with much gratitude. Thanks in advance!

    --Alexander

    P.S. I also happen to be looking for a way to set different volumes in alsamixer to certain values whenever X starts. If anyone can help with this, thanks!

  2. #2
    Linux Enthusiast
    Join Date
    Jan 2005
    Posts
    575
    Write xmms& instead of xmms

  3. #3
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    if you're lookin to have these apps start at X loading, the WM you are using will more than likely have some file it reads at start where you can put stuff like:
    Code:
    xmms &
    so you dont need your own script, it'll just auto load them.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •