[opensuse] How to send executable script ?
I would like to send a script by email to clients. But they would not know to use terminal or chmod. If they would just have to double clic on file, it would be perfect. Could be under KDE3, KDE4 or Gnome. When they have saved the file on local disk, how to make it run ? By default, the file is opened by the text editor... -> I can easily customize the script -> I can ask clients to do anything by phone :) well, not to complicated. Any trick ? Dsant -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Dsant wrote:
I would like to send a script by email to clients. But they would not know to use terminal or chmod. If they would just have to double clic on file, it would be perfect. Could be under KDE3, KDE4 or Gnome. When they have saved the file on local disk, how to make it run ? By default, the file is opened by the text editor...
-> I can easily customize the script -> I can ask clients to do anything by phone :) well, not to complicated.
The problem is getting the script to run. By default, scripts are not executable. This is a security feature that makes it a lot harder for malware to affect Linux, compared to Windows. So, the recipient would have to save the script, enable execute and then run it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2013-04-01 13:51 (GMT-0400) James Knott composed:
Dsant wrote:
I would like to send a script by email to clients. But they would not know to use terminal or chmod. If they would just have to double clic on file, it would be perfect. Could be under KDE3, KDE4 or Gnome. When they have saved the file on local disk, how to make it run ? By default, the file is opened by the text editor...
-> I can easily customize the script -> I can ask clients to do anything by phone :) well, not to complicated.
The problem is getting the script to run. By default, scripts are not executable. This is a security feature that makes it a lot harder for malware to affect Linux, compared to Windows. So, the recipient would have to save the script, enable execute and then run it.
or in a terminal or in "run command" menu selection just sh scriptname -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Felix Miata wrote:
or in a terminal or in "run command" menu selection just
I remembered that one after I sent the message. Regardless, I don't know how he could get a script to be executable, at least not in the manner he wants. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/01/2013 07:44 PM, Dsant wrote:
I would like to send a script by email to clients. But they would not know to use terminal or chmod. If they would just have to double clic on file, it would be perfect. Could be under KDE3, KDE4 or Gnome. When they have saved the file on local disk, how to make it run ? By default, the file is opened by the text editor...
-> I can easily customize the script -> I can ask clients to do anything by phone :) well, not to complicated.
won't your client's system administrator know how to make a script executable? -- dd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Dne Po 1. dubna 2013 19:44:38, Dsant napsal(a):
I would like to send a script by email to clients. But they would not know to use terminal or chmod. If they would just have to double clic on file, it would be perfect. Could be under KDE3, KDE4 or Gnome. When they have saved the file on local disk, how to make it run ? By default, the file is opened by the text editor...
-> I can easily customize the script -> I can ask clients to do anything by phone :) well, not to complicated.
Any trick ?
And what about create also .desktop file (something like myscript.desktop) containing something like #!/bin/bash [Desktop Entry] Type=Application Name=MyScript Exec=./myscript.sh and tell him to save both to desktop and hit the desktop file. It should first ask if You really wish to launch it. And You can preserve all attributes using for example tar.
Dsant
Good luck, Vojtěch -- Vojtěch Zeisek Komunita openSUSE GNU/Linuxu Community of the openSUSE GNU/Linux http://www.opensuse.org/ http://trapa.cz/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2013-04-01 at 19:44 +0200, Dsant wrote:
I would like to send a script by email to clients. But they would not know to use terminal or chmod. If they would just have to double clic on file, it would be perfect.
This is somethig that is intentionally hard to do in Linux. It is not a good thing to just click on an executable you get by email. Any email client that allows that should be reported as buggy and the "feature" removed ASAP. This is not Windows, remember... - -- Cheers, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAlFaAUgACgkQtTMYHG2NR9V8wgCfUxEIcpDZjpBpG0DjspTOmBrz F10An1mLDvTcs440fo5PQaBZphl/sftl =EInr -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Carlos E. R.
-
DenverD
-
Dsant
-
Felix Miata
-
James Knott
-
Vojtěch Zeisek