Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[X11] Lancer une console avec une commande dedans (resolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Dismantr
Apprentice
Apprentice


Joined: 06 Jun 2007
Posts: 201

PostPosted: Thu Aug 16, 2007 8:01 am    Post subject: [X11] Lancer une console avec une commande dedans (resolu) Reply with quote

Bonjour,

Je cherche la syntaxe pour lancer une console par un clic sur son icône sous X avec une commande qui tourne dedans en standard dès le lancement. Je souhaite donc éditer la commande de lancement de la console pour ajouter la commande à effectuer.

J'ai beau chercher, je ne trouve pas la syntaxe pour faire cette opération toute simple... :? ça doit pourtant être facile...

Bref. Any help ?


Last edited by Dismantr on Thu Aug 16, 2007 8:45 am; edited 1 time in total
Back to top
View user's profile Send private message
Temet
Advocate
Advocate


Joined: 14 Mar 2006
Posts: 2586
Location: 92

PostPosted: Thu Aug 16, 2007 8:03 am    Post subject: Reply with quote

Hum, t'as essayé de faire un raccourci vers une application, tu mets ta commande (genre "top") et tu coches "lancer dans un terminal" (ou une console, j'ai que Xp sous la main là (taf)) ??
_________________
Full Gentoo powered.
Back to top
View user's profile Send private message
salamandrix
Apprentice
Apprentice


Joined: 03 Aug 2006
Posts: 245

PostPosted: Thu Aug 16, 2007 8:16 am    Post subject: Reply with quote

Si tu utilises Konsole, il y a l'option -e permettant de lancer une commande à l'exécution de Konsole. Exemple :
Quote:
konsole -e top

édit : j'imagine que l'icône renverra vers un script.
Back to top
View user's profile Send private message
Dismantr
Apprentice
Apprentice


Joined: 06 Jun 2007
Posts: 201

PostPosted: Thu Aug 16, 2007 8:21 am    Post subject: Reply with quote

J'y ai pensé, mais je cherche à mettre ça en place sous Window Maker...
Ton option, Temet, n'existe que pour sous Gnome il me semble, malheureusement.
salamandrix : Cette option ne fonctionne qu'avec Konsole j'imagine ? J'aimerais bien pourvoir continuer sous urxvt (rxvt-unicode)...
Back to top
View user's profile Send private message
salamandrix
Apprentice
Apprentice


Joined: 03 Aug 2006
Posts: 245

PostPosted: Thu Aug 16, 2007 8:30 am    Post subject: Reply with quote

Effectivement c'est le man de Konsole qui me l'a donné, mais à priori est valable aussi pour urxvt (vient de tester à l'instant).
Back to top
View user's profile Send private message
_Seth_
Guru
Guru


Joined: 15 Sep 2004
Posts: 539
Location: encore paumé dans un labo ;)

PostPosted: Thu Aug 16, 2007 8:45 am    Post subject: Reply with quote

yep, confirmation :
man rxvt wrote:
-e command [arguments]
Run the command with its command-line arguments in(1,8) the rxvt(ouR XVT) [rxvt] (1,ouR XVT) [urxvtc] (1,ouR XVT) [urxvtd] (1,ouR XVT) [wterm] (1) win-
dow; also sets the window title and icon name to be the basename(1,3,3 File::Basename)
of the program being executed if(3,n) neither -title (-T) nor -n are
given on the command line. If this option is used, it must be
the last on the command-line. If there is no -e option then the
default is to run the program specified by the SHELL environment
variable or, failing that, sh(1).

_________________
no tears to cry, no feelings left
the species has amused itself to death
amused itself to death
Back to top
View user's profile Send private message
Dismantr
Apprentice
Apprentice


Joined: 06 Jun 2007
Posts: 201

PostPosted: Thu Aug 16, 2007 8:45 am    Post subject: Reply with quote

Super ! J'essaye ce soir en rentrant ;)
Merci à vous trois :)
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Thu Aug 16, 2007 8:55 am    Post subject: Reply with quote

Oui ça fonctionne avec l'option -e avec tous les terminaux, sauf gnome-terminal qui utilise -x pour ne pas faire comme tout le monde :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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