Computer Hardware Forum - TweakPC

Computer Hardware Forum - TweakPC (https://www.tweakpc.de/forum/)
-   Linux bzw. Non-MS & Programme (https://www.tweakpc.de/forum/linux-bzw-non-ms-and-programme/)
-   -   script in console (https://www.tweakpc.de/forum/linux-bzw-non-ms-and-programme/9239-script-in-console.html)

_Smash_ 22.06.2003 00:26

script in console
 
hallo

ich hab mir ein billiges linkscript geschrieben, undgefähr so

#!/bin/bash
cd /blabla/lala/
./datei

aber das läuft dann nicht in in einer konsole ab... bzw es öffnet sich keine konsole...

was mache ich da falsch

es ist hier xandros... iss nen umgebasteltes debian...

rootshell 22.06.2003 04:07

ich weiss nicht genau was du vorhast vielleicht meist du etwa 'xterm -e $deinFunk'

_Smash_ 22.06.2003 11:03

ich will einfach nur ne ausführbare datei starten....

rootshell 22.06.2003 14:58

von der console

/usr/bin/datei

oder eben mit einem terminal

xterm -exec /usr/bin/datei


sind die permissionen richtig gesetzt ggf. auf ausführbar anpassen.

_Smash_ 22.06.2003 15:16

ok danke

sys3 22.06.2003 15:30

Re: script in console
 
[quote=_Smash_]hallo

ich hab mir ein billiges linkscript geschrieben, undgefähr so

#!/bin/bash
cd /blabla/lala/
./datei

aber das läuft dann nicht in in einer konsole ab... bzw es öffnet sich keine konsole...
...[/quote]
Wenn Du meinst, dass sich auf der GUI kein Shell-Fenster bei der Skript-Ausführung öffnet: das ist normal. Wenn Du ein Programm, das ein Shell-Fenster auf der GUI öffnet, gestartet haben willst, musst Du so ein Programm explizit aufrufen. Wenn Du in diesem Shell-Fenster-Programm automatisch ein Skript ausführen willst, musst Du die Skript-Datei als Parameter übergeben; wie genau, sollte der Hilfe des Shell-Fenster-Programms zu entnehmen sein. Beim KDE-Shell-Fenster-Programm konsole wäre das "konsole -e <Scriptdatei>" - vorausgesetzt, dass für <Scriptdatei> Ausführungsrechte gesetzt sind.

Ciao,
sys3


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:56 Uhr.

Powered by vBulletin® Version 3.8.10 (Deutsch)
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.5.2 ©2010, Crawlability, Inc.