Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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.

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •