![]() Registered Member ![]()
|
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! |
![]() Registered Member ![]()
|
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.
|
![]() Administrator ![]()
|
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] |
![]() Registered Member ![]()
|
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 |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft