| View previous topic :: View next topic |
| Author |
Message |
Dave-Pritchard
Joined: Sun Jan 08, 2006 8:59 pm Posts: 33
|
Posted: Mon Jul 19, 2010 6:42 pm Post subject: Script from Icon |
|
|
I have a script to backup files to a usb drive, I would like to run it from an icon on the desktop, rather than opening a konsole and prodding a keyboard.
Putting konsole at the start of the scrip only opens a konsole ( expected ), is there a way to open a konsole and then run the script ?
ps I am total dunce at writing scripts.
Any help most welcome Dave P.. |
|
| Back to top |
|
 |
ajgreeny LXF regular
Joined: Wed May 10, 2006 9:18 pm Posts: 407 Location: Oxfordshire.
|
Posted: Mon Jul 19, 2010 9:48 pm Post subject: |
|
|
You do not need to open a konsole at all if you don't want to.
Just use the shell script format of
| Code: | #!/bin/bash
cp <the rest of the command> |
Now save it as copy.sh or whatever name you want, make it executable with and then make a launcher to it on the desktop, which I am not sure how you do in KDE (I assume KDE as you said you use konsole) _________________ Ubuntu 10.04 user, and loving it! |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|