shell script to start conky and plank

1.3k 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 best solutions below

3
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.