← Back to team overview

schooltool-developers team mailing list archive

Re: Interventions with CanDo

 

On Fri, Jul 02, 2010 at 04:35:58PM +0300, Gediminas Paulauskas wrote:
> 2010/7/2 Tom Hoffman <tom.hoffman@xxxxxxxxx>:
> > ---------- Forwarded message ----------
> > From: David Ally <david_ally@xxxxxxxxx>
> > Date: Fri, Jul 2, 2010 at 5:00 AM
> > Subject: Re: Fwd: [Schooltool-developers] Interventions with CanDo
> > To: Tom Hoffman <tom.hoffman@xxxxxxxxx>
> >
> >
> > Tom,
> > I had installed intervention from synaptic before your email came in,
> > however, when i used apt to install it, it said the most current
> > version had been installed but going further to add the plugin, gave
> > this error message,
> >
> > david@ubuntupc:~$ sudo -s "cat >
> > /etc/schooltool/schooltool-cando/plugins/intervention.zcml" <include
> > package="schooltool.intervention" />
> > bash: syntax error near unexpected token `newline'
> >
> > what is wrong?
> 
> The command got wrapped, should be a single line.

Even if it were a single line

  * it should be 'echo', not 'cat'
  * the '<include package="schooltool.intervention" />' bit should be
    quoted (and you'll have lots of fun with tripple nesting of quotes
    in bash).

I would suggest

  echo '<include package="schooltool.intervention" />' | \
  sudo tee /etc/schooltool/schooltool-cando/plugins/intervention.zcml

instead.

> Simply edit the
> /etc/schooltool/schooltool-cando/plugins/intervention.zcml file and
> put one line in it:
> 
> <include package="schooltool.intervention" />

Or that.  vi rules.

Marius Gedminas
-- 
An NT server can be run by an idiot, and usually is.

Attachment: signature.asc
Description: Digital signature


References