Language problem in `date` with cron
guillaume.chardin at gmail.com
Sun Jul 22 15:42:25 UTC 2007
works fine, my var LANG was bad (FR_fr) -> good is fr_FR :)
2007/7/22, Mark Knoop <mark at opus11.net>:
> 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 at 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.
> echo "message body" | mail -s "`LANG='fr_FR' date +'%A %d %B %Y'`
> subject" user at domain
> Mark Knoop
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
More information about the users