Re: Language problem in `date` with cron

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

 



works fine, my var LANG was bad (FR_fr) -> good is fr_FR :)
thanks !

2007/7/22, Mark Knoop <mark@xxxxxxxxxx>:
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

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



--
Guillaume

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux