nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Need clickable icon to load Terminal and input a command automatically

This is a discussion on Need clickable icon to load Terminal and input a command automatically within the Shell scripting forums, part of the Development/Scripting category; Hello All, I've recently joined the Linux community and love it! I'm on a time crunch though and need one ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 15-05-2009, 03:03 AM
Junior Member
User
 
Join Date: May 2009
OS: Fedora 10
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
afro is on a distinguished road
Exclamation Need clickable icon to load Terminal and input a command automatically

Hello All,
I've recently joined the Linux community and love it! I'm on a time crunch though and need one last thing before I launch my thinclients. I'm on Fedora 10 btw.

I made thinclients to boot to a windows terminal services session. I'm about ready to launch these machines but need to put an icon on the desktop in case my co-workers accidentally lose their connection, they will be able to just pull it back up.

I'm using the rdesktop -f -u "" <hostname> command at bootup, I just need an icon on the desktop in order to bring it back up since they don't know Linux.

I'm not extremely good at writing script yet as I'm still a rookie, any help is much appreciated!

Thanks!
Reply With Quote
  #2 (permalink)  
Old 15-05-2009, 07:20 PM
Junior Member
User
 
Join Date: May 2009
OS: Fedora 10
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
afro is on a distinguished road
Default

I got it! I wasn't asking the question correctly but through some more reading I found I needed to use bash instead of sh. So if anybody else is looking for something similar, it will look like this

#!/bin/bash
rdesktop -f -u "" <hostname>
<--- using -u "" blanks out the username, for security purposes in our case....

then make it executable by running terminal and using
chmod u+x /home/user/desktop/filename <--- since mine is on the desktop where they can click it....

then in order to avoid user confusion, go to system>Preferences>Personal>File Management, then click on Behavior tab, go to Executable Text Files and click "Choose Run executable text files when they are opened"

done!

Last edited by afro; 15-05-2009 at 07:22 PM.
Reply With Quote
Reply

Tags
desktop , gnome , linux , shell scripting , unix


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
how to Write Terminal command data into a file vazzdoin Coding in General 1 27-03-2009 04:30 PM
how to open an pdf file(.pdf) in terminal chandrasekar Getting started tutorials 1 27-03-2008 12:41 AM
run a command automatically after every 10 mins vikas027 Shell scripting 1 01-11-2007 07:24 PM
How can I take a screenshot from an X TERMINAL? sweta Shell scripting 4 20-07-2006 07:51 PM
How to save history of a hung terminal ricc Linux software 2 20-06-2006 12:21 AM


All times are GMT +5.5. The time now is 03:36 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38