View previous topic :: View next topic |
Author |
Message |
alex00 l33t
Joined: 12 Jul 2004 Posts: 747 Location: Wien
|
Posted: Tue Jan 29, 2008 8:49 pm Post subject: Blöde Frage...wie mache ich aus txt eine executable |
|
|
Versuche grade aus einer txt eine executable zu machen. Habs schon mit chmod a+x versucht aber das klappt leider nicht. Habe auch im Netz nichts gefunden. Hilfe.....[/url] |
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Tue Jan 29, 2008 9:18 pm Post subject: |
|
|
*blödfrag* welchen Sinn soll das haben? _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
|
blu3bird Retired Dev
Joined: 04 Oct 2003 Posts: 614 Location: Munich, Germany
|
Posted: Tue Jan 29, 2008 9:26 pm Post subject: |
|
|
Ich glaub er hat ein Shell-Skript im Sinn
In dem Fall musst du noch eine Interpreter angeben, dass machst Du normal in der 1. Zeile der Datei mit:
also ein ganz einfaches Bash-Skript würde so aussehen Code: | #!/bin/bash
echo "hello, world" |
Danach kannst Du's mit chmod +x ausführbar machen und mit ./dateinahme ausführen. _________________ Black Holes are created when God divides by zero! |
|
Back to top |
|
|
Klaus Meier Advocate
Joined: 18 Apr 2005 Posts: 2908 Location: Bozen
|
Posted: Wed Jan 30, 2008 5:32 am Post subject: |
|
|
Oder alles so lassen wie es ist und es mit bash dateiname ausführen. Die Frage ist etwas eigenwillig formuliert. Es bleibt immer noch eine Textdatei, ein Executable kann nur der Linker erzeugen, kein chmod. |
|
Back to top |
|
|
r3tep Tux's lil' helper
Joined: 10 Sep 2005 Posts: 108
|
Posted: Wed Jan 30, 2008 5:43 pm Post subject: |
|
|
und nicht die Pfadvariablen vergessen entsprechend zu setzen, wenn Du das Skript ohne absolute Pfadangaben aufrufen willst... |
|
Back to top |
|
|
alex00 l33t
Joined: 12 Jul 2004 Posts: 747 Location: Wien
|
Posted: Wed Jan 30, 2008 6:55 pm Post subject: |
|
|
ok danke klappt nun. |
|
Back to top |
|
|
|