Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Eterm --exec script [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Fri Apr 02, 2004 8:48 pm    Post subject: Eterm --exec script [RISOLTO] Reply with quote

Salve a tutti,
sto cercando inutilmente di far rimanere eterm aperto dopo che ha eseguito uno scriptino molto semplice

Code:

#! /bin/bash

echo "Benvenuto nel tuo sistema, solka!!"
echo "Oggi è il `date +%x`"
echo "Sono le `date +%X`"
echo "Buon lavoro!"


eterm è richiamato da uno stile di fluxbox tramite il comando rootCommand nel modo seguente


Code:
rootCommand:            Eterm --trans --borderless --border-width 0 --buttonbar false --scrollbar 0 -g 60x70+5+50 --exec welcome



Come avrete intuito è una shell che si apre allo startup e vorrei renderla più "carina" mostrando quel messaggio...come posso fare altrimenti?
Grazie a tutti
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal


Last edited by solka on Sun Apr 04, 2004 9:58 am; edited 1 time in total
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Sat Apr 03, 2004 10:57 am    Post subject: Reply with quote

risolto verosimilmente...ho aggiunto quelle righe in /etc/profile... è vero che viene mostrato in ogni shell aperta ,però non ho trovato altro modo...
non metto ancora il tag risolto, se magari qualcuno ha qualche idea migliore me la faccia sapere pls :)
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Sat Apr 03, 2004 1:14 pm    Post subject: Reply with quote

solka wrote:
risolto verosimilmente...ho aggiunto quelle righe in /etc/profile... è vero che viene mostrato in ogni shell aperta ,però non ho trovato altro modo...
non metto ancora il tag risolto, se magari qualcuno ha qualche idea migliore me la faccia sapere pls :)


uhmm... non so molto di redirezione, pero' se metti il messaggio in un file, puoi richiamarlo con cat, credo...

tipo, nel file msg metti il messaggio che vuoi appaia, poi in .xinirtc metti una riga del tipo

cat /home/utente/msg &

dovrebbe aprirti una shell con il messaggio.

Ignoro se la lasci aperta o meno... nel secondo caso, basta che elimini & e attenderà che tu la chiuda ;-)

Coda
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Sat Apr 03, 2004 10:28 pm    Post subject: Reply with quote

ciao,
purtroppo facendo cat viene solo mostrato il contenuto del file e non esegue il comando date...
ti ringrazio cmq per la risposta :)
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Sun Apr 04, 2004 1:30 am    Post subject: Re: Eterm --exec script Reply with quote

Modifica lo script welcome così:

Code:
#! /bin/bash
echo "Benvenuto nel tuo sistema, solka!!"
echo "Oggi è il `date +%x`"
echo "Sono le `date +%X`"
echo "Buon lavoro!"
bash


Poi, come facevi inizialmente, lancia Eterm con qualcosa del tipo:

Code:
$ Eterm -e ~/welcome


;)
_________________
"Larry the Cow was a bit frustrated at the current state of Linux Distributions..."
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Sun Apr 04, 2004 8:09 am    Post subject: Reply with quote

solka wrote:
purtroppo facendo cat viene solo mostrato il contenuto del file e non esegue il comando date..


oops ! Non avevo badato al fatto che c'erano delle variabili nel tuo script ;-)

Sorry,

Coda
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Sun Apr 04, 2004 9:57 am    Post subject: Reply with quote

Perfetto, grazie mille MyZelF :)
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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