Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Script from Icon

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Dave-Pritchard



Joined: Sun Jan 08, 2006 8:59 pm
Posts: 33

PostPosted: Mon Jul 19, 2010 6:42 pm    Post subject: Script from Icon Reply with quote

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
View user's profile Send private message
ajgreeny
LXF regular


Joined: Wed May 10, 2006 9:18 pm
Posts: 453
Location: Oxfordshire.

PostPosted: Mon Jul 19, 2010 9:48 pm    Post subject: Reply with quote

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
Code:
chmod +x copy.sh
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)
_________________
Xubuntu 12.04 user, and loving it!
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast