RE: pretty format can't work on cron job

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

 



> -----Original Message-----
> From: Johannes Sixt [mailto:j.sixt@xxxxxxxxxxxxx]
> Sent: 2010å11æ5æ 16:38
> To: Chen Wang (QA-CN)
> Cc: git@xxxxxxxxxxxxxxx; ellre923@xxxxxxxxx
> Subject: Re: pretty format can't work on cron job
> 
> Am 11/5/2010 9:29, schrieb chen_wang@xxxxxxxxxxxxxxxxx:
> >
> > For the command: git log 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2.. -M
> --date=short --pretty=format:"Author: %aN <%ae>; Date: %ad" --shortstat
> --dirstat --no-merges
> >
> > I run it on shell by manual can create correct format of output, such as:
> > -------------------------------------------------
> > Author: Amit Shah <amit.shah@xxxxxxxxxx>; Date: 2010-10-20
> >  1 files changed, 14 insertions(+), 3 deletions(-)
> >  100.0% drivers/char/
> > -------------------------------------------------
> >
> > But when I put that command on cron job, even I run â. /etc/profileâ and â.
> ~/.bash_profileâ first, I canât get correct format of output.
> > -------------------------------------------------
> > Author: %aN <amit.shah@xxxxxxxxxx>; Date: Wed Oct 20 13:45:43 2010
> +1030
> >  100.0% drivers/char/
> >  1 files changed, 14 insertions(+), 3 deletions(-)
> > -------------------------------------------------
> 
> % has a special meaning in a crontab. See man 5 crontab.
> 

I warped this command in script and trigger script in crontab.
I think it's not the root cause, because %ae still works.

> -- Hannes

TREND MICRO EMAIL NOTICE
The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.ÿô.nlj·Ÿ®‰­†+%ŠË±é¥Šwÿº{.nlj· ŠßžØn‡r¡öë¨è&£ûz¹Þúzf£¢·hšˆ§~†­†Ûÿÿïÿ‘ê_èæ+v‰¨þ)ßø

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]