Fw: spamc error using perl
Hi I had this error running spamd: # /usr/local/spamassassin/bin/spamd start[16517] warn: unix dgram connect: Socket operation on non-socket at /usr/local/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Logger/Syslog.pm line 79[16517] error: no connection to syslog available at /usr/local/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Logger/Syslog.pm line 79[16517] info: config: failed to parse, now a plugin, skipping: ok_languages en de it[16517] info: spamd: server started on port 783/tcp (running version 3.1.3)[16517] info: spamd: server pid: 16517[16517] info: spamd: server successfully spawned child process, pid 16539[16517] info: spamd: server successfully spawned child process, pid 16540[16517] info: prefork: child states: IS[16517] info: prefork: child states: II ^C[16517] info: spamd: server killed by SIGINT, shutting down[16517] info: spamd: handled cleanup of child pid 16540 due to SIGCHLD[16517] info: spamd: server killed by SIGINT, shutting down[16517] warn: Attempt to free unreferenced scalar: SV 0x6b8d4 Spamc doesn't run, I give the same command but the process is not runing and doesn't give any error So in internet I find that the right command for make run spamd was with perl Perl -T PROCESS-PATH --syslog-socket=inet -d I've perl 5.8.5 installedon a Solaris 9 machineand I have installed Mail-SpamAssassin-3.1.3. The required version of perl for Mail-SpamAssassin-3.1.3 is 5.6.0 but I have an advanced one so it should work. When I make start spamd with perl -T /usr/local/bin/spamd --syslog-socket=inet -d the process start correctly but if I do the same with spamc perl -T /usr/local/bin/spamc --syslog-socket=inet -d I get the following error Unrecognized character \x7F at /usr/local/bin/spamc line 1 Can you explain me why? Is there another valid option? Should I modify the Makefile.PL? How can I do to make run this process? Regards Alberto IovinoSistemi InformaticiChelab srl Via Fratta 2531023 Resana (TV)mail [EMAIL PROTECTED]Tel 0423/717980Fax 0423/715058
Re: spamc error using perl
From: Alberto Iovino [EMAIL PROTECTED] Hi I had this error running spamd: # /usr/local/spamassassin/bin/spamd start [16517] warn: unix dgram connect: Socket operation on non-socket at /usr/local/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Logger/Syslog.pm line 79 ... Perl -T PROCESS-PATH --syslog-socket=inet -d I've perl 5.8.5 installed on a Solaris 9 machine and I have installed Mail-SpamAssassin-3.1.3. The required version of perl for Mail-SpamAssassin-3.1.3 is 5.6.0 but I have an advanced one so it should work. When I make start spamd with perl -T /usr/local/bin/spamd --syslog-socket=inet -d This is not generally regarded as a correct way to run spamd. the process start correctly but if I do the same with spamc perl -T /usr/local/bin/spamc --syslog-socket=inet -d I get the following error Unrecognized character \x7F at /usr/local/bin/spamc line 1 Can you explain me why? I can. Can you read it if I do? You've been answered at least once already. You CANNOT run spamc, a binary program, using perl. {^_^}
Re: Fw: spamc error using perl
Alberto Iovino wrote: Hi [...] the process start correctly but if I do the same with spamc perl -T /usr/local/bin/spamc --syslog-socket=inet -d I get the following error *Unrecognized character \x7F at /usr/local/bin/spamc line 1* Hello, as I already explained in the perl bug report you filed, this is because spamc is not a Perl application, it is a binary which is directly executed by the kernel. At the bare minimum, you need to change the above line to /usr/local/bin/spamc --syslog-socket=inet -d (that is, drop the 'perl -T' from the command). Can you explain me why? You are asking perl to execute a datafile it is unable to parse. People sometimes disparage Perl as being akin to line noise, but this is literally what you are trying to get perl to execute in this instance. Try running 'perl /bin/ls'. You will see that it achieves about the same level of success. Is there another valid option? Should I modify the Makefile.PL? How can I do to make run this process? Just run it directly. Regards, David Regards Alberto Iovino Sistemi Informatici Chelab srl Via Fratta 25 31023 Resana (TV) mail [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Tel 0423/717980 Fax 0423/715058 -- Much of the propaganda that passes for news in our own society is given to immobilising and pacifying people and diverting them from the idea that they can confront power. -- John Pilger
spamc error using perl
Hi I've perl 5.8.5 installedon a Solaris 9 machineand I have installed Mail-SpamAssassin-3.1.3. The required version of perl for Mail-SpamAssassin-3.1.3 is 5.6.0 but I have an advanced one so it should work. When I make start spamd with perl -T /usr/local/bin/spamd --syslog-socket=inet -d the process start correctly but if I do the same with spamc perl -T /usr/local/bin/spamc --syslog-socket=inet -d I get the following error Unrecognized character \x7F at /usr/local/bin/spamc line 1 Is there another valid option? Should I modify the Makefile.PL? How can I do to make run this process? Regards Alberto IovinoSistemi InformaticiChelab srl Via Fratta 2531023 Resana (TV)mail [EMAIL PROTECTED]Tel 0423/717980Fax 0423/715058
Re: spamc error using perl
On Tue, Jun 27, 2006 at 08:42:41AM +0200, Alberto Iovino wrote: When I make start spamd with perl -T /usr/local/bin/spamd --syslog-socket=inet -d the process start correctly but if I do the same with spamc perl -T /usr/local/bin/spamc --syslog-socket=inet -d I get the following error Unrecognized character \x7F at /usr/local/bin/spamc line 1 Is there another valid option? Should I modify the Makefile.PL? How can I do to make run this process? You should just run it. spamc is a compiled C program, and has nothing to do with perl. -- Randomly Generated Tagline: Clear with no chance of showers. Temperatures will hold steady at 68°F with a humidity level of 45%. There is a slight chance of short periods of darkness followed by frantic scurrying of labstaff personnel. Winds will be very calm with slight gusts from the SP2 and the Midship Wall. - http://www.cs.wisc.edu/csl/weather/ pgpKrptnUW6YQ.pgp Description: PGP signature
Re: spamc error using perl
From: Theo Van Dinter [EMAIL PROTECTED] On Tue, Jun 27, 2006 at 08:42:41AM +0200, Alberto Iovino wrote: When I make start spamd with perl -T /usr/local/bin/spamd --syslog-socket=inet -d the process start correctly but if I do the same with spamc perl -T /usr/local/bin/spamc --syslog-socket=inet -d I get the following error Unrecognized character \x7F at /usr/local/bin/spamc line 1 Is there another valid option? Should I modify the Makefile.PL? How can I do to make run this process? You should just run it. spamc is a compiled C program, and has nothing to do with perl. You NEVER run spamc as a daemon, either. The -d option on spamc is followed by a host name. And spamc does not support a --syslog-socket option that I know of. The spamd tool runs as a daemon. The spamc tool runs as a filter that accepts input from stdin and sends it out stdout. You run it like any other utility program. spamc mail_file_to_test would test the file mail_file_to_test in your current directory and feed the results to the console so you can see what it is doing. {^_^}