Results 1 to 2 of 2
Hi,
I have a linux application. The installer for this application is streamed from the server with a mime type of "application/x-sh".
When the browser receives this streamed data, it ...
- 08-29-2005 #1Just Joined!
- Join Date
- Jul 2005
- Posts
- 6
Running a shell script from browser automatically
Hi,
I have a linux application. The installer for this application is streamed from the server with a mime type of "application/x-sh".
When the browser receives this streamed data, it displays a message asking the user to 1. select a program to open with and displayes a browse button or 2. save it to disk.
I want to change this behavior, so that the user is presented with an option to open with "sh" automatically. The user should not be made to click the browse button and than select /bin/sh. It would be even better if the browser runs this automatically with the /bin/sh program.
It can be configured from the browser (setting the behavior for .sh file types).
But I do not have any control over the user's browser settings.
Is there a way to enforce the desired behavior.
I will appreciate any help/suggestions on it.
Thanks,
Basu.
- 08-29-2005 #2
Not that I know of. Each user will have to change it in their browser on their own.
Imagine if everyone's browser defaulted to running .sh files without prompting.. You would inevitably have someone abusing this and running malicious scripts.


Reply With Quote
