git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Sixt <j.sixt@viscovery.net>
To: chen_wang@trendmicro.com.cn
Cc: git@vger.kernel.org, ellre923@gmail.com
Subject: Re: pretty format can't work on cron job
Date: Fri, 05 Nov 2010 09:37:54 +0100	[thread overview]
Message-ID: <4CD3C262.6080108@viscovery.net> (raw)
In-Reply-To: <7B2091481B9ED640A92789B0CA07059587CCF7@CDCEXMAIL02.tw.trendnet.org>

Am 11/5/2010 9:29, schrieb chen_wang@trendmicro.com.cn:
> 
> 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@redhat.com>; 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@redhat.com>; 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.

-- Hannes

  reply	other threads:[~2010-11-05  8:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-05  8:29 pretty format can't work on cron job chen_wang
2010-11-05  8:37 ` Johannes Sixt [this message]
2010-11-05  8:47   ` chen_wang
2010-11-05 13:14     ` Jeff King
2010-11-06  4:42       ` Chen WANG
2010-11-07 19:18         ` Thomas Rast
2010-11-08  2:30           ` Chen WANG

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CD3C262.6080108@viscovery.net \
    --to=j.sixt@viscovery.net \
    --cc=chen_wang@trendmicro.com.cn \
    --cc=ellre923@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).