Find the answer to your Linux question:
Results 1 to 4 of 4
Ok, so I want to get a Gnome panel button to open 2 programs at once (audacious and rhythmbox). Is there a way I can make that happen in one ...
  1. #1
    Just Joined! Chao06's Avatar
    Join Date
    Aug 2008
    Location
    College Station, Texas, United States
    Posts
    40

    Launching 2 programs at once

    Ok, so I want to get a Gnome panel button to open 2 programs at once (audacious and rhythmbox). Is there a way I can make that happen in one command, or do I have to deal with bash scripting? I tried a bash script, but a) I don't think my syntax is right and b) when i try to run it, I get

    Could not launch application
    Failed to execute child process "/home/david/DJ.sh" (Permission denied)

    My bash script is as follows:
    #!/bin/bash
    audacious
    rhythmbox

    Any suggestions?

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Your script would wait for audacious to finish before it started rythmbox.

    Write:
    #!/bin/bash
    audacious &
    rhythmbox &

    in order to have them run in the background.

    Also, execute
    chmod +x DJ.sh
    in order to grant your script execution rights.

  3. #3
    Just Joined! Chao06's Avatar
    Join Date
    Aug 2008
    Location
    College Station, Texas, United States
    Posts
    40
    i tried that, but nothing happens... (i did do the entire filepath for DJ.sh)

  4. #4
    Just Joined! Chao06's Avatar
    Join Date
    Aug 2008
    Location
    College Station, Texas, United States
    Posts
    40
    oo haha... i was just toying w/ it more and I got it to work : D

    my syntax for accessing DJ.sh in the button was fine (just "/home/david/DJ.sh") it was just the missing ampersands in my .sh file

    Thanks : )

Posting Permissions

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