Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6250209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:22:51+00:00 2026-05-24T13:22:51+00:00

I have the following command to show changes to a subversion repository svn log

  • 0

I have the following command to show changes to a subversion repository

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

It works fine in the command line.

When I paste it into a crontab, I get the following error message:

/bin/sh: -c: line 0: unexpected EOF while looking for matching `)'
/bin/sh: -c: line 1: syntax error: unexpected end of file

How does this need to be quoted to work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:22:52+00:00Added an answer on May 24, 2026 at 1:22 pm

    When using cron, avoid the hassle of such issues by putting everything into a shell script, then call the shell script from cron.

    This approach is commonly used and a good idea because:

    • It makes your command easily testable (you don’t have to do stupid things like schedule an execution in one minute’s time)
    • Easy to manually invoke if you have to, eg in case the job failed, ops can re-run without touching crontab – also jobs can be invoked from other jobs, eg a final job that checks if all jobs ran OK and re-runs those that didn’t
    • It separates what is executed from when it’s executed – leaving cron to do (only) what it does best: scheduling
    • It gives you full access to shell script features, or using different shells like perl
    • It keeps crontab clean and easy to read
    • Anyone developing/maintaining cron tasks knows where to look if you use a consistent directory for cron tasks (eg /opt/cron or whatever)
    • You can put your cron tasks under source control – too often shell scripts are overlooked for source control, but they are code and therefore benefit from source control

    For example:

    dosomething.sh:
    
    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
    

    plus

    cron 0 22 * * * /opt/cron/dosomething.sh
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have found the following command in AWK useful in Vim :'<,'>!awk '{ print
I have the following command which will loop over all the subdirectories in a
I have the following command which deletes files that are one day old and
I have a MySQL innodb database at 1.9GB, showed by following command. SELECT table_schema
I have the following function that deletes the LaTeX command surrounding the current cursor
I have created a certificate using the following SSL command: makecert -r -pe -n
My question is related to the command pattern, where we have the following abstraction
In my repository, I have created tags using the following commands. git tag v1.0.0
I have following situation: I have loged user, standard authentication with DB table $authAdapter
Something I don't understand about how SVN displays log output. Suppose I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.