[syslog-ng]syslog2ng not working on Solaris10

Stew Redfield syslog-ng@lists.balabit.hu
Thu, 23 Dec 2004 08:47:11 -0500


on Solaris10 (s10_63 at least)=20
/usr/bin/awk=20
||=20
/usr/bin/nawk

Usually that error means a missing ' in the script or sourced in config.


Happy non-religious merry generic holiday greetings...

-----Original Message-----
From: syslog-ng-admin@lists.balabit.hu
[mailto:syslog-ng-admin@lists.balabit.hu] On Behalf Of Ed Ravin
Sent: Wednesday, December 22, 2004 9:46 PM
To: syslog-ng@lists.balabit.hu
Subject: Re: [syslog-ng]syslog2ng not working on Solaris10

On Wed, Dec 22, 2004 at 05:40:31PM -0800, Majumdar, Anamitra wrote:
> There is an utility syslog2ng which is packaged with syslog-ng.
> But does not work on solaris 10.
>=20
> I am having the folowing error
>=20
>  ./syslog2ng <syslog.conf> syslog-ng.conf
> ./syslog2ng: BEGIN: not found
> ./syslog2ng: getline: not found
> ./syslog2ng: syntax error at line 9: `close' unexpected

Look at the first few lines of syslog2ng:

  #!/usr/bin/awk -f
  #
  # syslog2ng
  #
  # Translator from syslog.conf to syslog-ng.conf
  # by Jonathan W. Marks <j-marks@uiuc.edu>

You probably don't have /usr/bin/awk - maybe Sun keeps it in /bin,
/usr/ucb, or some other directory?
_______________________________________________
syslog-ng maillist  -  syslog-ng@lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html