Re: [AMBER] Error message from FEW in Amber14 tutorial A24

From: Hannes Loeffler <Hannes.Loeffler.stfc.ac.uk>
Date: Mon, 23 Mar 2015 15:51:59 +0000

On Mon, 23 Mar 2015 11:17:31 -0400
Jason Swails <jason.swails.gmail.com> wrote:

> On Mon, Mar 23, 2015 at 10:52 AM, Hannes Loeffler <
> Hannes.Loeffler.stfc.ac.uk> wrote:
>
> > On Mon, 23 Mar 2015 10:41:10 -0400
> > Jason Swails <jason.swails.gmail.com> wrote:
> >
> > > But it turns out to be a command launched from within FEW.pl
> > > somewhere. Ack... I see no way to get around this without
> > > changing /bin/sh to point to bash instead of dash.
> >
> > I suspect it's line 1100 in ./libs/check_input.pm (exec to
> > antechamber). Apparently dash doesn't like the >& redirection (for
> > both stdout and stderr).
> >
>
> ​Yes, >& is bash only (and csh, I think, but it's not POSIX sh). A
> quick grep reveals a large number of >& used in FEW, all of which
> will need to be changed to play nicely with Linux distros that use
> dash.

As far as I can see those lines are executed through a call to
"system". The only reason why this is run through /bin/sh is because
shell meta characters are scanned for when there is only on scalar
argument (a string in this case). Not a good practice actually.


Cheers,
Hannes.

_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Mon Mar 23 2015 - 09:00:19 PDT
Custom Search