This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Running shell script from firefox

Tags: None
(comma "," separated)
User avatar
jeroensteenhuis
Registered Member
Posts
5
Karma
0

Running shell script from firefox

Thu Oct 04, 2012 7:17 am
I want to make a website with shell script on it so users can easily adapt there system to our needs. But how do I run shell scripts when downloaded without opening an console (just click and run)?

Thanx!
airdrik
Registered Member
Posts
1854
Karma
5
OS
Assuming that your intentions are non-invasive, the expected procedure is that the user will download the script off your site, they should inspect it to make sure that it is safe (and won't do things like delete their home directory, install some malware, or do anything else unsafe). After the user decides it is safe enough to run they then set the executable flag (right-click -> properties -> Permissions -> check Is Executable, or some variation on this procedure depending on the particularities of the user's file manager) on the script and then can run it by double-clicking on it.

I should hope that you aren't looking for a way to make a shell script or other potentially executable file download with the executable flag already set, and especially to run automatically because if there were such a "feature" that would be a huge security hole and would be (and has been?) exploited by malware creators everywhere.


airdrik, proud to be a member of KDE forums since 2008-Dec.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Further, in the case of shell scripts KDE will treat them as normal text files (even if they have an *.sh extension) until they are marked as executable.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
jeroensteenhuis
Registered Member
Posts
5
Karma
0
Okay, thanx!

No my intentions are not evil, I just want to make some auto install scripts for setting up new PC's.

Kind regards,

Jeroen Steenhuis


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft