Results 1 to 2 of 2

Thread: Starting programs in the background

  1. #1
    Join Date
    Apr 2007
    Beans
    12

    Question Starting programs in the background

    Hi,

    I want to run some programs at startup.
    But I want them to start in a specific order and delayed in some intervals (sleep 5s etc.).

    So I created a script like this
    Code:
    #!/bin/bash
    
    firefox
    
    sleep 5s
    thunderbird
    
    sleep 5s
    pidgin
    and put it into preferences/sessions/startup programs tab/add.

    But, of course, now the next program won't start until I close the previous one.

    Is there a possibility to start a program in the background, so the script won't stop?

  2. #2
    Join Date
    Aug 2008
    Location
    Washington DC
    Beans
    2,186
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Starting programs in the background

    Quote Originally Posted by PaulW89 View Post
    Hi,

    I want to run some programs at startup.
    But I want them to start in a specific order and delayed in some intervals (sleep 5s etc.).

    So I created a script like this
    Code:
    #!/bin/bash
    
    firefox
    
    sleep 5s
    thunderbird
    
    sleep 5s
    pidgin
    and put it into preferences/sessions/startup programs tab/add.

    But, of course, now the next program won't start until I close the previous one.

    Is there a possibility to start a program in the background, so the script won't stop?

    Code:
    #!/bin/bash
    firefox&
    
    sleep 5s
    thunderbird&
    
    sleep 5s
    pidgin&

Bookmarks

Posting Permissions

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