Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Blöde Frage...wie mache ich aus txt eine executable
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
alex00
l33t
l33t


Joined: 12 Jul 2004
Posts: 747
Location: Wien

PostPosted: Tue Jan 29, 2008 8:49 pm    Post subject: Blöde Frage...wie mache ich aus txt eine executable Reply with quote

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
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Tue Jan 29, 2008 9:18 pm    Post subject: Reply with quote

*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
View user's profile Send private message
blu3bird
Retired Dev
Retired Dev


Joined: 04 Oct 2003
Posts: 614
Location: Munich, Germany

PostPosted: Tue Jan 29, 2008 9:26 pm    Post subject: Reply with quote

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:
Code:
#!/bin/bash


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
View user's profile Send private message
Klaus Meier
Advocate
Advocate


Joined: 18 Apr 2005
Posts: 2908
Location: Bozen

PostPosted: Wed Jan 30, 2008 5:32 am    Post subject: Reply with quote

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
View user's profile Send private message
r3tep
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2005
Posts: 108

PostPosted: Wed Jan 30, 2008 5:43 pm    Post subject: Reply with quote

und nicht die Pfadvariablen vergessen entsprechend zu setzen, wenn Du das Skript ohne absolute Pfadangaben aufrufen willst...
Back to top
View user's profile Send private message
alex00
l33t
l33t


Joined: 12 Jul 2004
Posts: 747
Location: Wien

PostPosted: Wed Jan 30, 2008 6:55 pm    Post subject: Reply with quote

ok danke klappt nun.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum