Aha - you were right it wasn't working cause of the expansion.

 I replaced the #!/bin/sh  with #!/bin/bash  in the run file and it now
works.    Is this a solaris problem? If not, how come the script works when
using sh on other systems?

 I dont know why I'm having so much trouble on this systems,  very strange.

 Now when a client connects the log says:

@400000004038ab8a38c539dc ld.so.1: /var/qmail/bin/bincimap-up: fatal:
libstdc++.so.5: open failed: No such file or directory

 Cheers for your help,

 Adam


Andreas Aardal Hanssen wrote:

> On Sun, 22 Feb 2004, Adam Henson wrote:
> >   When looking in file /var/log/qmail/log/bincimap/current I see it is
> >just filling up with the following error:
> >   ./run: syntax error at line 8: `(' unexpected
> >   Is it saying that the run file itself has an error on line 8? If so, I
> >cant see it!
>
> It's the bash expanding of $(hostname). Try replacing this with `hostname`
> (with backticks). If that doesn't work you can just insert your own host
> name there. :-)
>
> To test, you could see if
>
> echo $(hostname)
>
> gives the same error. Then if
>
> echo `hostname`
>
> does.
>
> Andy :-)
>
> --
> Andreas Aardal Hanssen   | http://www.andreas.hanssen.name/gpg
> Author of Binc IMAP      |  "It is better not to do something
> http://www.bincimap.org/ |        than to do it poorly."

Reply via email to