You are not logged in.
Pages: 1
In firefox for webcal protocol i want to assign shell script as webcal.sh
After assignment Edit-Preferences i just realized firefox cant execute sh file. Is there any idea?
I guess problem is shellscript file in terminal execute with sh command. is it possible to execute without sh command. I mean instead of "sh webcal.sh" i want to execute "webcal.sh"
I guess this one will work my problem.
It works well in xubuntu.
Any idea?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I tried
* chmod +x webcal.sh after that ./webcal.sh --- Doesnt work - sh: ./webcal.sh : notfound
Offline
sh /home/tux/webcal.sh or wherever the script is should work without any problems
and why you want it without sh
Offline
Add [c]#!/bin/sh[/c] to the very top of the script:
[c]#!/bin/sh
what you want it to do here[/c]
Then just chmod +x it. You can even remove the extension .sh if you want to.
What this trick does is tell the command line environment which scripting interface to use to execute the script. It works for perl (#!/usr/bin/perl), python (#!/usr/bin/python), tcl (#!/usr/bin/tclsh8.5) and pretty much any scripting language there is. All you need to do is give the correct path for it to work 
Offline
You are the best Trixar_za 
I just missed #!/bin/sh. Firefox can execute webcal.sh with parameters well now 
Thank you
kultex:
I want to use it, 'Cause in firefox i cant give parameters to protocol as like "sh webcal.sh" Even i typed manual in mimeTypes.rdf
Offline
Pages: 1
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]