How to start prog at boot.

Discussion in 'Acer Aspire One' started by Wiesje, Oct 31, 2008.

  1. Wiesje

    Wiesje

    Joined:
    Oct 27, 2008
    Messages:
    9
    Likes Received:
    0
    I'm wondering how I can make a prog autostart on boot.
    I've got Linpus and wanted to install gmail-notifier.
    Works great, exept I have to go to the terminal and type:
    [user@localhost ~]$ cd Downloads/
    [user@localhost Downloads]$ cd gmail-notify
    [user@localhost gmail-notify]$ ./notifier.py
    When I close my terminal my prog stops running.

    I found something about making a script in /etc/init.d
    But I don't know how to do that.

    Thanx
     
    Wiesje, Oct 31, 2008
    #1
  2. Wiesje

    rbil

    Joined:
    Aug 14, 2008
    Messages:
    730
    Likes Received:
    0
    Location:
    The Wet Coast, Canada
    You can add a program to autostart by hitting ALT-F2 and entering the command:

    xfce4-autostart-editor

    When you add this program you'd fill in the command to look like this:

    /mnt/home/Downloads/notifier.py

    If you launch a program from a terminal, the program will close when you close the terminal that launched it. However if you add "&" to the end of the command line, then the application will go to the background and you can close the terminal and the program will remain running. Like this:

    ./notifier.py &

    Cheers.
     
    rbil, Oct 31, 2008
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.