Gentoo Archives: gentoo-user

From: Tanstaafl <tanstaafl@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Using 'time' command in crontab?
Date: Thu, 11 Jul 2013 11:37:53
Message-Id: 51DE98F2.9080207@libertytrek.org
In Reply to: Re: [gentoo-user] Using 'time' command in crontab? by Alan McKinnon
1 On 2013-07-11 7:21 AM, Alan McKinnon <alan.mckinnon@×××××.com> wrote:
2 > On 11/07/2013 13:16, Tanstaafl wrote:
3 >> Adding the time { } to the command results in the following error being
4 >> emailed:
5 >>
6 >> /bin/sh: -c: line 1: syntax error: unexpected end of file
7 >>
8 >> Obviously this is more proof of my lack of understanding bash, but
9 >> googling hasn't revealed a solution, so any help is appreciated...
10
11 > replace the braces {} with parenthesis ().
12 >
13 > braces do many interesting things in bash such as sequences {1..10} and
14 > delimiting variables ${INSERT_VAR_NAME_HERE} but you want to group
15 > several commands and run them in a subshell, parenthesis does that.
16
17 Crap, figured it would be something simple...
18
19 Thanks Alan...