Linux / UNIX Tech Support Forum
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 ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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! |
| Sponsored Links | ||
|
|
|
|||
|
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. |
![]() |
| Tags |
| desktop , gnome , linux , shell scripting , unix |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |