shell script to start conky and plank

1.2k views Asked by At

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.

1

There are 1 answers

3
Ricardo Devis Agullo On BEST ANSWER

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.