PDA

View Full Version : Executing ICON script


lawson
28th December 2005, 18:57
First off I am VERY new to Scripting. I made a VERY short script for a program called rdesktop. I made a very simple script:

#!/bin/bash

rdesktop -fu 105 xx.xx.xx.xx

(105 is the user and xx.xx.xx.xx is the ip address of the server)

I drug my script to a desktop as an icon, but when I click the icon to execute it, I get a popup window asking me to click: DISPLAY, RUN IN TERMINAL, CANCEL, RUN. I need to know what to add for the script to automatically run instead of that window poping up.

The script works fine if I click run or run in terminal.

Thanx in advance,
Mike

till
28th December 2005, 19:07
If you create a shortcut on your desktop, you can chose in the advanced options if the script shall be alwasy executed in terminal.

lawson
28th December 2005, 21:22
Do you mean by right clicking and going to the properties? I could not find an advanced option in there. Only BASIC, EMBLEMS, PERMISSIONS and NOTES.

lawson
28th December 2005, 21:51
Found it!!

Thanx!!!