[Perl-unix-users] (no subject)

2001-11-01 Thread Vadim K
Dood day! I wrote a server which listens on a specific port and for each client splits child proccess (using fork()). I need to exchange between them (proccesses). I tried to use pipe (used socketpair function), but can create only one. I have such a general question: How to organize i

RE: [Perl-unix-users] (no subject)

2001-11-01 Thread Elston, Jeremy
Greetings... I have a large client-server application in production now. My choice was to use sockets for communication. IPC turned out to be too slow and troublesome for the volume of data. Plus, I wanted to have the flexibility of placing client processes on separate servers in the futu

RE: [Perl-unix-users] (no subject)

2001-11-01 Thread david . b . deline
Look into DBM files. I've created a process that is similar to yours (parent process forks child processes) and they are all daemons. I used a DBM file to communicate between them. The only draw back was you will have to implement a file locking schema to prevent corrupting your DBM file. Regar

[Perl-unix-users] Mime::Lite and different mail readers

2001-11-01 Thread Troy Sniff
Hey everyone, I am using Mime::Lite to send a bit of email. Sometimes it will be with an attachment and sometimes it will be without. This is my code: - if ($AttachFile) { $msg = MIME::Lite->new( To=> $To,

[Perl-unix-users] Crypt function for MD5

2001-11-01 Thread Alex Moen
Hey all, I am using a crypt function in a script to check a password... here's a snippet: # Match current passwd... $pass = $ent[1]; $salt=substr($pass,0,2); $encrypt = crypt($oldpass, $salt); if ($pass ne $encrypt) { warn "Wrong password entered for $username"; &auth_

[Perl-unix-users] Script works on Windows server but not on UNIX server

2001-11-01 Thread Britt
I am puzzeled that a script will work on Windows servers and not on UNIX servers.Even a script as simple as hello.pl       Any ideas for a begginer?

Re: [Perl-unix-users] Script works on Windows server but not on UNIXserver

2001-11-01 Thread Edward Moon
You can run into an issue if you are using DOS/Win32 based linebreaks (CRLF) versus Unix based linebreaks (LF I think). On Thu, 1 Nov 2001, Britt wrote: > I am puzzeled that a script will work on Windows servers and not on UNIX >servers.Even a script as simple as hello.pl > > > > Any ideas for

Re: [Perl-unix-users] Script works on Windows server but not on UNIX server

2001-11-01 Thread $Bill Luebkert
> Britt wrote: > > I am puzzeled that a script will work on Windows servers and not on UNIX >servers.Even a script as simple as hello.pl > > > > Any ideas for a begginer? 1) Yes, don't post in HTML. 2) The most important part is what webserver you are using (Apache, IIS, etc.) and you d