Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Screen vernsteuern[teilweise gelöst]
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
return13
Guru
Guru


Joined: 02 Feb 2004
Posts: 513
Location: Hamburg - Germany

PostPosted: Thu Dec 23, 2004 2:30 pm    Post subject: Screen vernsteuern[teilweise gelöst] Reply with quote

Gibts ne möglichkeit screen ein commando mitzugeben das in dem screen ausgeführt werden soll?
Ziel ist es per Befehlszeile nen Screen zu öffnen ihm dabei gleichzeitig zu sagen was er starten soll und ihn zu detachen

Gibts da ansätze?


Last edited by return13 on Thu Dec 23, 2004 4:08 pm; edited 2 times in total
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Thu Dec 23, 2004 2:35 pm    Post subject: Reply with quote

Edit: Quatsch! Vergiß es....
Back to top
View user's profile Send private message
return13
Guru
Guru


Joined: 02 Feb 2004
Posts: 513
Location: Hamburg - Germany

PostPosted: Thu Dec 23, 2004 2:38 pm    Post subject: Reply with quote

dann öffnet er mir ein screen den ich mit befehl als name des screens ansprechen kann, aber das ist ja nicht gemeint, sondern das ich screen ein Programm als Parameter übergebe was er starten soll und nicht wie er heissen soll..
Back to top
View user's profile Send private message
malachay
n00b
n00b


Joined: 18 Jun 2003
Posts: 71
Location: Germany

PostPosted: Thu Dec 23, 2004 2:39 pm    Post subject: Reply with quote

Code:

screen -d -m commando

das -d steht für "detached" kannst das auch weglassen, dann bist du auch gleich in dem screen drin wo das Kommando ausgeführt wird
_________________
"The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners."
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Thu Dec 23, 2004 2:42 pm    Post subject: Reply with quote

Da hast Du aber schneller gelesen als ich gedacht habe, während ich langsamer gedacht habe, als ich geschrieben hab. :D

screen -d -m <befehl> scheint zu passen...

Edit: Hab' ich mich heute schon als langsam bezeichnet? :oops:


Last edited by psyqil on Thu Dec 23, 2004 2:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
tm130
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jul 2004
Posts: 110
Location: Indianapolis, IN, USA

PostPosted: Thu Dec 23, 2004 2:42 pm    Post subject: Reply with quote

Also, ich weiss ja nicht wo das Problem liegt, aber für Updates auf einem entfernten Rechner (SSH-Session) führe ich auf diesem Rechner einfach immer
Code:
screen -S update emerge -u world
aus.

Da wird ein Screen mit dem Namen "update" geöffnet in dem dann emerge -u world ausgeführt wird
_________________
GORT KLAATU BARADA NIKTO
Back to top
View user's profile Send private message
return13
Guru
Guru


Joined: 02 Feb 2004
Posts: 513
Location: Hamburg - Germany

PostPosted: Thu Dec 23, 2004 2:50 pm    Post subject: Reply with quote

Hab jetzt alles zusamm gemixt und herraus kam

Code:

screen -S name_des_screens -d -m "befehl_zu_starten"



danke für die schnelle Hilfe! ;)=
_________________
Wer Recht erkennen will, muß zuvor in richtiger Weise gezweifelt haben.
Aristoteles (384-322), griech. Philosoph, Begründer d. abendländ. Philosophie
Back to top
View user's profile Send private message
return13
Guru
Guru


Joined: 02 Feb 2004
Posts: 513
Location: Hamburg - Germany

PostPosted: Thu Dec 23, 2004 3:07 pm    Post subject: Reply with quote

zum Zweck... wollt z.B. icq Automatisch per boot script starten lassen
aber da er ja dann als root arbeitet umgefähr so..

Code:

 su - DER_USER -c "screen -S icq -d -m centericq"


vielleicht gibts ja noch andere die sowas brauchen...
Back to top
View user's profile Send private message
malachay
n00b
n00b


Joined: 18 Jun 2003
Posts: 71
Location: Germany

PostPosted: Thu Dec 23, 2004 3:59 pm    Post subject: Reply with quote

return13 wrote:
zum Zweck... wollt z.B. icq Automatisch per boot script starten lassen
aber da er ja dann als root arbeitet umgefähr so..

Code:

 su - DER_USER -c "screen -S icq -d -m centericq"


vielleicht gibts ja noch andere die sowas brauchen...

*lol* für ICQ? Du bist ja hart :D
Das kann man natürlich für jedes x-beliebige Programm nehmen und ist sehr praktisch, ich nutze es zum Beispiel für den Lotus Notes Domino Server (gleiche Syntax wie du..)
_________________
"The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners."
Back to top
View user's profile Send private message
return13
Guru
Guru


Joined: 02 Feb 2004
Posts: 513
Location: Hamburg - Germany

PostPosted: Thu Dec 23, 2004 4:03 pm    Post subject: Reply with quote

noch ne letzte frage :
Idee wie man die session XY dann wieder beenden kann?(remote)
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Thu Dec 23, 2004 8:17 pm    Post subject: Reply with quote

Indem du alle darin laufenden Programme beendest?

Gruß,
/dev
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