Search code examples
bashshellubuntuconky

shell script to start conky and plank


I have just started to learn shell scripting on Ubuntu and thought of writing a basic script which starts conky and plank and placing it in /usr/bin so that I can run it as a command.I did make it an executable too.

#!/bin/bash
echo `conky -q &`
echo `plank  &`

Only conky gets started up.


Solution

  • You don't need the echoes or the back quotes. Just:

    #!/bin/bash
    conky -q &
    plank &
    

    This should also work:

    #!/bin/bash
    echo `conky -q` &
    echo `plank` &
    

    So you put in background the whole command.