On Tue, 8 Jan 2008, Vincent Snijders wrote:

> A.J. Venter schreef:
> > 
> > > Nothing was changed.
> > > Can you please give some sample code? It's hard to say something in
> > > general.
> > >
> > > Note that > or  | cannot be used unless you invoke the shell with a
> > > commandline like
> > > /bin/sh -c "your command > yourfile"
> > >
> > I mean when I launch the program myself on the commandline e.g.
> > ./hawkstoneadmin | grep "INSERT INTO"
> > 
> > So the piping should, in theory, have no effect on this call:
> > function GetCanID:String
> > Var StrList: TStringList;
> > Begin
> >  execute ('/usr/bin/getcanid.sh',StrList)
> 
> is '/usr/bin/getcanid.sh' an executable? Maybe you should use something like:
> '/bin/sh /usr/bin/getcanid.sh' ?

Even so, we don't know what happens inside getcanid.sh, and even less about
hawkstoneadmin: if it expects a terminal or not. Maybe it expects std input
to be available and whatnot.

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to