<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=365114&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [Résolu] redirection dans un fichier nommé avec sa date]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=365114</link>
		<description><![CDATA[Les sujets les plus récents dans [Résolu] redirection dans un fichier nommé avec sa date.]]></description>
		<lastBuildDate>Tue, 15 Dec 2009 15:39:16 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] redirection dans un fichier nommé avec sa date]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3141071#p3141071</link>
			<description><![CDATA[<p>Impec! Merci tout le monde!</p>]]></description>
			<author><![CDATA[dummy@example.com (dan75)]]></author>
			<pubDate>Tue, 15 Dec 2009 15:39:16 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3141071#p3141071</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] redirection dans un fichier nommé avec sa date]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132716#p3132716</link>
			<description><![CDATA[<p>Pour sendmail : </p><div class="codebox"><pre><code>sendmail &lt;&lt;EOF -t
To: &lt;destinataire&gt;
Subject: &lt;sujet&gt;

&lt;Texte du mail&gt;
EOF</code></pre></div><p>Sinon pour les pieces jointes, ya mutt qui gere bien ça :</p><div class="codebox"><pre><code>mutt&lt;&lt;EOF -x -s &lt;TITRE&gt; -a &lt;fichier_joint&gt; -- mail@host.tld
&lt;MESSAGE&gt;
EOF</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (sputnick)]]></author>
			<pubDate>Fri, 11 Dec 2009 16:17:23 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132716#p3132716</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] redirection dans un fichier nommé avec sa date]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132535#p3132535</link>
			<description><![CDATA[<p>Bonjour,</p><p>Il est parfois utile d&#039;utiliser uuencode aussi pour les mails. Cela permet de joindre le fichier au mail (et non pas de l&#039;inclure).</p><p>En ce qui me concerne, bien que plus lourd, j&#039;utilise sendmail plutôt que la commande mail. (Encore faut-il qu&#039;il soit installé)</p><div class="codebox"><pre><code>{ cat &lt;&lt;EOF
To: &lt;destinataire&gt;
Subject: &lt;sujet&gt;

&lt;Texte du mail&gt;
EOF
cat &lt;fichier&gt;| uuencode &quot;&lt;Nom fichier joint au mail&gt;&quot;
} | sendmail -t</code></pre></div><p>Suivant les destinataires, il est parfois préférable d&#039;appliquer un unix2dos :</p><div class="codebox"><pre><code>{ cat &lt;&lt;EOF
To: &lt;destinataire&gt;
Subject: &lt;sujet&gt;

&lt;Texte du mail&gt;
EOF
cat &lt;fichier&gt;| unix2dos | uuencode &quot;&lt;Nom fichier joint au mail&gt;&quot;
} | sendmail -t</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Totor)]]></author>
			<pubDate>Fri, 11 Dec 2009 15:05:51 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132535#p3132535</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] redirection dans un fichier nommé avec sa date]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132474#p3132474</link>
			<description><![CDATA[<p>et de mail aussi <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Je teste tout ça <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (dan75)]]></author>
			<pubDate>Fri, 11 Dec 2009 14:37:30 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132474#p3132474</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] redirection dans un fichier nommé avec sa date]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132472#p3132472</link>
			<description><![CDATA[<p>WOUAH merci pour les infos d&#039;horodateurs <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (dan75)]]></author>
			<pubDate>Fri, 11 Dec 2009 14:36:48 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132472#p3132472</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] redirection dans un fichier nommé avec sa date]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132464#p3132464</link>
			<description><![CDATA[<p><strong>mail -s &quot;sujet&quot; -- mail@foo.bar &lt; fichier</strong></p><p>ou :</p><p><strong>&lt;commande avec sortie&gt; | mail -s &quot;sujet&quot; -- mail@foo.bar</strong></p>]]></description>
			<author><![CDATA[dummy@example.com (sputnick)]]></author>
			<pubDate>Fri, 11 Dec 2009 14:33:43 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132464#p3132464</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] redirection dans un fichier nommé avec sa date]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132448#p3132448</link>
			<description><![CDATA[<p>Salut !</p><p>Si c&#039;est la date au moment où tu tapes ta commande :</p><div class="codebox"><pre><code>commande &gt; monfichier_`date +%Y%m%d`</code></pre></div><p>En faisant les côtes avec Altgr + 7 <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Tu peux faire un </p><div class="codebox"><pre><code>man date</code></pre></div><p>pour voir quelles options de formatage t&#039;intéressent ...</p><p>Pour l&#039;envoi par mail, je passe la main ...</p><p>Desmogone, horodateur <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (desmogone)]]></author>
			<pubDate>Fri, 11 Dec 2009 14:28:38 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132448#p3132448</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] redirection dans un fichier nommé avec sa date]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132444#p3132444</link>
			<description><![CDATA[<p>bonjour</p><p>tu peux faire :</p><div class="codebox"><pre><code>date=`date +%F`
commande &gt; monfichier_$date</code></pre></div><p>il y a d&#039;autres formats possibles pour la date</p>]]></description>
			<author><![CDATA[dummy@example.com (llwynrt)]]></author>
			<pubDate>Fri, 11 Dec 2009 14:27:34 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132444#p3132444</guid>
		</item>
		<item>
			<title><![CDATA[[Résolu] redirection dans un fichier nommé avec sa date]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132430#p3132430</link>
			<description><![CDATA[<p>bonjour,<br />Je souhaite écrire un script pour extraire des données volumineuses.<br />Donc je veux les rediriger vers un fichier dont le nom contiendrait automatiquement la date (JJMMAA)</p><p>donc j&#039;écris un script du genre:<br />commande &gt; monfichier_date automatique</p><p>Selon vous, est-il possible d&#039;alimenter la date automatiquement?<br />L&#039;idée c&#039;est de créer un script qui va créer un nouveau fichier avec sa date, chaque fois qu&#039;il sera lancé (bien sûr à condition d&#039;en faire un par jour au maximum)</p><p>De plus, comment fait-on pour envoyer automatiquement le fichier par mail dans le même script?<br />Merci si vous savez <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (dan75)]]></author>
			<pubDate>Fri, 11 Dec 2009 14:22:31 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3132430#p3132430</guid>
		</item>
	</channel>
</rss>
