Re: "internet connection tester script"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2010-03-29 at 13:35 -0400, Jim wrote:
On 03/29/2010 01:22 PM, Paolo Galtieri wrote:
> On 03/29/2010 10:12 AM, Chris Tyler wrote:
>    
>> On Mon, 2010-03-29 at 12:58 -0400, Jim wrote:
>>
>>      
>>> On 03/29/2010 04:17 AM, Hakan Koseoglu wrote:
>>>
>>>        
>>>> On Mon, Mar 29, 2010 at 7:16 AM, Hiisi<very-cool@xxxxxxxxxx>    wrote:
>>>>
>>>>
>>>>          
>>>>> OK, I see. You was trying to advertise your nice working script to
>>>>> list members. That was your crafty plan, wasn't it? ;- )
>>>>> Where should one propose it for inclusion in F13? ;- )
>>>>>
>>>>>
>>>>>            
>>>> Interesting, when I saw his mail to the CentOS list, I tried it and it
>>>> didn't work so I sent him a couple of suggestions that made it work
>>>> for me. I don't have a Fedora 12 around to see if the default shell
>>>> behaviour is different but with the Ubuntu's Bash it didn't work and
>>>> required adding ` around the ping&    grep  statements to allow them to
>>>> be evaluated.
>>>>
>>>>
>>>>          
>>> FC12-X86-64
>>>
>>> I put the script in a text file and Properties says it a "shell script"
>>> and it has read, execute
>>> priviledges but if I left click on it, It won't execute,
>>>
>>> But if I open a Terminal window and do ~/internet-script or bash
>>> internet-script it will execute.
>>>
>>> If I do a right click and "open with" a terminal, only the terminal
>>> window opens but internet-script won't execute.
>>>
>>> How do I get this Internet-script to execute by left clicking, or even
>>> double clicking ?
>>>
>>>        
>> What's the full permission mode and desktop environment?
>>
>> With mode 764 here, double-clicking brings up a display/run dialog on
>> Gnome under F12.
>>
>> -Chris
>>
>>
>>      
> If you are running Gnome you will need to go into the file browser
> preferences under Behavior and set the "Run executable text files when
> they are opened" option.  By default the Gnome file browser will ask
> what to do.
>
> Paolo
>    
I'm using KDE-4 and if I tell it to "open with" Konsole , konsole will 
open but won't execute internet-script .

If I "open with" xterm it will open and execute file but, xterm shuts 
down to fast, and I can not see finale results.

Left clicking on icon produces no results.


Basically you cannot open scripts with konsole, but you can 'open' (run) scripts with bash/sh/ksh/perl/whatever IN konsole. What you need to do, is right-click on the script, open with 'bash', or 'perl', or any other interpreter, click on Run in terminal (first checkbox under the 'known applications frame') and than hit OK. The result will be a new konsole with the results from your scripts in it.


Calin

Key fingerprint = 37B8 0DA5 9B2A 8554 FB2B 4145 5DC1 15DD A3EF E857

=================================================
The camel has a single hump; The dromedary two; Or else the other way around. I'm never sure. Are you? -- Ogden Nash
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux