RE: [Perl-unix-users] RFC: Unix Sysadmin perl snippets

2003-09-29 Thread James Schappet
Hey, why not. It's always nice to see how other people think. Would something like this be needed, kill all kill `ps -ef | grep | awk '{ print $2}'` or Better yet, Read CSV File, create Temp Table in MYSQL. #!/usr/bin/perl use DBI; use Data::Dumper; my $dsn = 'dbi:mysql::localhost:3306'

Re: [Perl-unix-users] RFC: Unix Sysadmin perl snippets

2003-09-29 Thread Opeyemi . Bakare
Michael, I am a sys admin myself, albeit of a source control system. Neverthess, I wouldn't mind taking a peek at the code of which you spoke. Cheers. Opeyemi Bakare "Michael A Nachbaur" <[EMAIL PROTECTED]>@listserv.ActiveState.com on 09/29/2003 12:54:31 PM Sent by:[EMAIL PROTECTED] T

Re: [Perl-unix-users] RFC: Unix Sysadmin perl snippets

2003-09-29 Thread Michael A Nachbaur
On Monday 29 September 2003 10:14 am, Wagner, David --- Senior Programmer Analyst --- WGO wrote: > Why re-invent the wheel if some aspect of what you are doing can possibly > help others. I would enjoy seeing what is going on! Well, since I started this thread, it's only appropriate that I

RE: [Perl-unix-users] RFC: Unix Sysadmin perl snippets

2003-09-29 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: > Subject: [Perl-unix-users] RFC: Unix Sysadmin perl snippets > > > Hello everyone, > > I do system administration and programming, and I rely heavily on > Perl to do both these duties. I find that, in the course of my work, > I routinely create one-off scripts - snippe

[Perl-unix-users] RFC: Unix Sysadmin perl snippets

2003-09-29 Thread Michael A Nachbaur
Hello everyone, I do system administration and programming, and I rely heavily on Perl to do both these duties. I find that, in the course of my work, I routinely create one-off scripts - snippets of perl code, one-liners, etc - that I use to short-cut around some of the messier aspects of my

[Perl-unix-users] Child process and signal handling

2003-09-29 Thread Antoine Hue
Hi, I am using a Perl script to launch several execution of a process. Child processes are created piped to the Perl script using a open(PIPE,"|$exe"); Then, I am waiting for the child to stop before launching next iteration of the process. In case the child process is not terminating fine, I s

[Perl-unix-users] Unique identifiers in Sendmail::Milter 0.18

2003-09-29 Thread Mark
I am using Sendmail::Milter 0.18, on Perl 5.8.0, and I was wondering whether the connection object $ctx has any properties which allow me to uniquely identify it. For example: sub connect_callback { my $ctx = shift; It appears $ctx is hardly unique, and can therefore not be use as follows:

[Perl-unix-users] Sendmail::Milter without threads

2003-09-29 Thread Mark
Hello, I am interested in Sendmail::Milter on my FreeBSD 4.7R machine, but then for Perl without threads. When I installed Perl, I compiled it without thread support, as I believe thread support is still experimental in Perl 5.8.0. So, is there a Sendmail::Milter that will not require a threads-e