I've been trying to get a perl and a python program to run. When I click on them, it opens in kate etc. How do I make them use perl/python? Using Ubuntu 13.04.
Thanks
Bill
I've been trying to get a perl and a python program to run. When I click on them, it opens in kate etc. How do I make them use perl/python? Using Ubuntu 13.04.
Thanks
Bill
You need to change the file's permission to be executed:If that's not enough, the first line of your program needs a correct interpreter chosen. Example for python:Code:chmod +x /path/to/fileCode:#!/usr/bin/python #rest of your code
Are you sure?
... but the default app in Nautilus is ... "Text Editor".Code:sander@flappie:~$ ll testing.py -rwxrwxr-x 1 sander sander 35 May 20 18:37 testing.py* sander@flappie:~$ cat testing.py #!/usr/bin/python print "Hello!" sander@flappie:~$
So it would also need changing the default handler to python ...
I think what is happening is that your file browser think you want to edit it. See if you can right-click on the file, select Open with Other application and then select python/perl.
You can also create an icon/tab/something in your menu that when clicked will run the file for you.
Is this how you want to run those programs (double-clicking on them)?
Thanks, I had to do it from a terinal. Wouldn't do it in a file manager.
Bill
Bookmarks