View previous topic :: View next topic |
Author |
Message |
solka Apprentice
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Fri Apr 02, 2004 8:48 pm Post subject: Eterm --exec script [RISOLTO] |
|
|
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 |
|
|
solka Apprentice
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Sat Apr 03, 2004 10:57 am Post subject: |
|
|
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 |
|
|
codadilupo Advocate
Joined: 05 Aug 2003 Posts: 3135
|
Posted: Sat Apr 03, 2004 1:14 pm Post subject: |
|
|
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 |
|
|
solka Apprentice
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Sat Apr 03, 2004 10:28 pm Post subject: |
|
|
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 |
|
|
MyZelF Bodhisattva
Joined: 25 Feb 2003 Posts: 2010 Location: Venice, Italy
|
Posted: Sun Apr 04, 2004 1:30 am Post subject: Re: Eterm --exec script |
|
|
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 |
|
|
codadilupo Advocate
Joined: 05 Aug 2003 Posts: 3135
|
Posted: Sun Apr 04, 2004 8:09 am Post subject: |
|
|
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 |
|
|
solka Apprentice
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Sun Apr 04, 2004 9:57 am Post subject: |
|
|
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 |
|
|
|