【发布时间】:2011-08-14 20:59:51
【问题描述】:
我有以下命令来显示对 subversion 存储库的更改
svn log -v -r{$(date +%Y-%m-%d)}:HEAD http://therepository | awk '/^r[0-9]+ / {user=$3} {if (user=="username") {print $1 $2 $3}}' | mail -ne -s'Users SVN commits' email@email.com
在命令行中运行良好。
当我将它粘贴到 crontab 中时,我收到以下错误消息:
/bin/sh: -c: line 0: unexpected EOF while looking for matching `)'
/bin/sh: -c: line 1: syntax error: unexpected end of file
这需要如何引用才能起作用?
【问题讨论】:
标签: svn shell cron awk quoting