Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] passare uno script a evolution
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) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
jack.o.matic
n00b
n00b


Joined: 04 Dec 2005
Posts: 60

PostPosted: Fri Dec 30, 2005 6:26 pm    Post subject: [OT] passare uno script a evolution Reply with quote

ciao,
probabilmente quello che sto per scrivere è OT, ma semmai ci penseranno i moderatori :)
Evolution ha una funzione che permette di mettere come firma l'output di uno script.
Il problema è che evolution non rispetta il formato dell'output, cioè scrive tutto a diritto senza rispettare
gli " a capo".
come fo a dirgli "questo va su una nuova riga?" :)
ciao e grazie
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Fri Dec 30, 2005 6:45 pm    Post subject: Re: probabilmente ot: passare uno script a evolution Reply with quote

hai provato a fare stampare dei \n e/o \r alla fine di ogni riga?
Back to top
View user's profile Send private message
jack.o.matic
n00b
n00b


Joined: 04 Dec 2005
Posts: 60

PostPosted: Sat Dec 31, 2005 10:18 am    Post subject: Reply with quote

niente non funziona... ho provato queste combinazioni:
Code:
/n , /n/r, /n /r, /r, /r/n, /r /n

(probabilmente quelle con lo spazio o senza sono uguali, ma io ho provato)
Forse sbaglio a metterli nello script:
Code:


echo "************************************************************** 
\n"
fortune math
echo
echo "Gpg Key: ******** \n"
echo "Please DO NOT send me HTML e-mails and/or proprietary-format
attachments \n"
echo "***************************************************************
\n"

che dite?
Back to top
View user's profile Send private message
jack.o.matic
n00b
n00b


Joined: 04 Dec 2005
Posts: 60

PostPosted: Sat Dec 31, 2005 10:40 am    Post subject: Reply with quote

ho quasi risolto...
in pratica evolution vuole l'html, cioè basta aggiungere <br> e va a capo.
Ho detto quasi risolto perchè circa la metà delle volte la firma non appare, credo perchè l'output dello script è troppo lungo...
ora indago e vi farò sapere.
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sat Dec 31, 2005 11:08 am    Post subject: Reply with quote

jack.o.matic wrote:
niente non funziona... ho provato queste combinazioni:
Code:
/n , /n/r, /n /r, /r, /r/n, /r /n

i caratteri di escape si inseriscono con il back-slash (\), non con lo slash (/)
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sat Dec 31, 2005 11:33 am    Post subject: Reply with quote

Spostato da Forum italiano (Italian) a Forum di discussione italiano.
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Sun Jan 01, 2006 5:06 pm    Post subject: Reply with quote

Mi sono permesso di modificare il titolo visto che "probabilmente ot" non è un tag standard...
Usare i tag standard è utile, mettere tag a caso no (vedi il problema di spostare tutti i topic ot nel subforum... se tutti usassero il medesimo tag ci vorrebbe un'attimo...)
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
jack.o.matic
n00b
n00b


Joined: 04 Dec 2005
Posts: 60

PostPosted: Tue Jan 03, 2006 1:24 pm    Post subject: Reply with quote

sono giunto a queste conclusioni:
1- per andare a capo bisogna stampare <br>
2- ogni tanto evolution non mette la firma, e non so come mai. Sembrerebbe che la cosa non dipenda dalla lunghezza della firma, quindi è abbastanza misteriosa. Nota: il fatto succede abbastanza spesso e non ci sono frasi formattate male o con caratteri strani che potrebbero dar noia a evolution.

EDIT: Ho scoperto che succede. Le frasi formattate male ci sono, ma da nano non le vedevo. Evolution non vuole i caratteri accentati, tutto qui.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano 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