Results 1 to 5 of 5

Thread: Very simple help stopping bash terminal output please

  1. #1
    Join Date
    Jun 2009
    Location
    Norfolk UK
    Beans
    37
    Distro
    Ubuntu 10.04 Lucid Lynx

    Very simple help stopping bash terminal output please

    My very simple bash for starting Lord of the rings online contains just the following 3 lines.

    killall pulseaudio
    export WINEPREFIX=/home/dad/.wine-lotro/
    pylotro


    This works fine, but how do I stop terminal windows opening
    (eg saying: pulseaudio: no process killed) or failing that, how do I make them close straight away please?

    thanks

  2. #2
    Join Date
    Aug 2007
    Location
    127.0.0.1
    Beans
    1,800
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Very simple help stopping bash terminal output please

    How are you starting the script?
    "Just in terms of allocation of time resources, religion is not very efficient. There's a lot more I could be doing on a Sunday morning."
    -Bill Gates

  3. #3
    Join Date
    Dec 2008
    Beans
    Hidden!

    Re: Very simple help stopping bash terminal output please

    Sounds like you are just wanting to 'background' the script.

    You can leave your original script in tact. Create a custom launcher set to be a terminal application, and for your command simply enter the name of the lotr script with ' &' appended. When you click this launcher a CLI will appear, your commands will run, and then the window will exit automatically.

    Does this help?
    Last edited by aesis05401; June 22nd, 2009 at 08:32 PM.

  4. #4
    Join Date
    Aug 2007
    Beans
    949

    Re: Very simple help stopping bash terminal output please

    If you actually want to kill pulseaudio (if it's running and killall is failing) you should also try using pkill instead of killall.

    Using the & will background the process but not suppress output. To do both, you would have to redirect the output data. So in the launcher command line you'd type

    Code:
    script.sh &> /dev/null &
    Which redirects both standard output and error to the null device (discards all output).

  5. #5
    Join Date
    Jun 2009
    Location
    Norfolk UK
    Beans
    37
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Very simple help stopping bash terminal output please

    Many thanks all, I am being stupid (for a change)

    If I start the script from `create launcher` the problems non existent

    soltanis's solution works if I start it from a terminal

    thanks again

    boo

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
  •