[Spread-users] send text to spread group from command line?

Theo Schlossnagle jesus at omniti.com
Fri Aug 17 15:12:45 EDT 2001


On Friday, August 17, 2001, at 03:01  PM, Monte Ohrt wrote:
> Compiling and installing and maintaining a C program is much easier for
> us. I'd rather use C for an application like this anyways, it is much
> lighter weight, efficient and secure.

Okey dokey.

As for effeciency.  I believe the the perl code is just as effecient as 
the C code.  Why?  Because when I wrote Spread.pm it is just xs code 
wrapped around the native C spread client library...  So the performance 
should be very very close.

As for secure?  I don't see why it is any more or less secure.  Someone 
can change a compiled executable just as easily as a perl program and 
see what it is doing with only slightly mor effort.

Lightweight?  If you are running a modern unix and you have _any_ 
facility that requires perl, this process should be using a shared 
copy-on-write access to the perl interpreter.

With all that said... I prefer C too :-)

I would add a reconnect attempt after a failed SP_multicast in the C 
code though.  If you will off your spread daemon and restart it, you 
don't want to go an have to HUP apache to get it to restart the piped 
command and you don't want it exiting after a single error or you will 
have some serious fork()/exec() action if Spread has a problem.

--
Theo Schlossnagle
1024D/82844984/95FD 30F1 489E 4613 F22E  491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA  3D 90 B9 9F BE 27 24 E7





More information about the Spread-users mailing list