Re: Language problem in `date` with cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Guillaume wrote:
> Hi,
> i setup a cron job sending a mail to a user every days, with this command :
> echo "message body" | mail -s "`date +%A %d %B %Y` subject" user@domain
> 
> But the day of the week is displayed in English and not in french in
> the subject line (%A). I try to use environemental  var like LANG=FR
> of LANG=FR_fr in the script, but the day is still shown in English.
> Any idea how tho change this behaviour ?
> Thanks.
> 
Try:

echo "message body" | mail -s "`LANG='fr_FR' date +'%A %d %B %Y'`
subject" user@domain

-- 
Mark Knoop


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux