SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-07-2008, 02:28 PM
Bob Martin
 
Posts: n/a
Default Nautilus scripts


All the docs say that Nautilus scripts can be written in any scripting language,
but this does not appear to be true - I think there is a list of allowed languages.

If the first line of my script is #!/bin/bash then nautilus identifies it as a shell script;
if the first line is #!/usr/bin/python then it's identified as a python script; but if
the first line is #!/usr/bin/rexx then nautilus ignores it.

Is there an editable list of valid programs?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-07-2008, 02:28 PM
Bill Marcum
 
Posts: n/a
Default Re: Nautilus scripts

On 2008-02-05, Bob Martin <[email protected]> wrote:
>
>
>
> All the docs say that Nautilus scripts can be written in any scripting
> language, but this does not appear to be true - I think there is a
> list of allowed languages.
>
> If the first line of my script is #!/bin/bash then nautilus identifies
> it as a shell script; if the first line is #!/usr/bin/python then it's
> identified as a python script; but if the first line is
> #!/usr/bin/rexx then nautilus ignores it.
>
> Is there an editable list of valid programs?


Is there a difference between a nautilus script and a script run from a
shell prompt?
Normally the kernel reads the #! line, and any interpreter should be
allowed if it and the script have execute permission. What happens if
you try to run a script with #!/usr/bin/rexx?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-07-2008, 02:28 PM
Bob Martin
 
Posts: n/a
Default Re: Nautilus scripts

in 448685 20080205 135947 Bill Marcum <[email protected]> wrote:
>On 2008-02-05, Bob Martin <[email protected]> wrote:
>>
>>
>>
>> All the docs say that Nautilus scripts can be written in any scripting
>> language, but this does not appear to be true - I think there is a
>> list of allowed languages.
>>
>> If the first line of my script is #!/bin/bash then nautilus identifies
>> it as a shell script; if the first line is #!/usr/bin/python then it's
>> identified as a python script; but if the first line is
>> #!/usr/bin/rexx then nautilus ignores it.
>>
>> Is there an editable list of valid programs?

>
>Is there a difference between a nautilus script and a script run from a
>shell prompt?
>Normally the kernel reads the #! line, and any interpreter should be
>allowed if it and the script have execute permission. What happens if
>you try to run a script with #!/usr/bin/rexx?


They work fine, I have hundreds of Rexx programs.
Nautilus is obviously reading the first line and deciding it doesn't like it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-07-2008, 02:28 PM
Doug Freyburger
 
Posts: n/a
Default Re: Nautilus scripts

Bob Martin <[email protected]> wrote:
>
> All the docs say that Nautilus scripts can be written in any scripting language,
> but this does not appear to be true - I think there is a list of allowed languages.
>
> If the first line of my script is #!/bin/bash then nautilus identifies it as a shell script;
> if the first line is #!/usr/bin/python then it's identified as a python script; but if
> the first line is #!/usr/bin/rexx then nautilus ignores it.
>
> Is there an editable list of valid programs?


If I were writing a program like Nautilus I'd use "file" to identify
files by type. Actually, I'd probably crib the underlying code
from "file" using the same config file and such. Do a man on
"file" and you can peruse the config file probably used.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (<a href="http://u