[11758] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 5358 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Apr 12 10:07:29 1999

Date: Mon, 12 Apr 99 07:00:22 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Mon, 12 Apr 1999     Volume: 8 Number: 5358

Today's topics:
    Re: Active State 5.09 Perl processes hanging under NT 4 (Bill Morgan)
    Re: Backslash escapes w/in *single* quotes? <tchrist@mox.perl.com>
        CGI embedded in html (Milko Kretschmann)
        chmod of a file on a unix platform <marcov@ctrl-v.nl>
    Re: chmod of a file on a unix platform <aspinelli@ismes.it>
    Re: form to email mails twice mikecard@my-dejanews.com
        Grabbing STDOUT in a PERL/CGI environment. <chrish@impacttech.com>
        Grabbing STDOUT in a PERL/CGI environment. <chrish@impacttech.com>
    Re: How do i write a program that will spell a word eve (Bart Lateur)
    Re: How to get yesterday date (Jonathan Stowe)
    Re: How to pass parameters for perl programs under Acti <aspinelli@ismes.it>
        mt tcp server, win32 <dint@rz.bauboden.com>
    Re: On installing ActivePerl - Build 514 ... does not c <rpsavage@ozemail.com.au>
        Perl skills needed in the UK <chris@a1assured.com>
    Re: Privacy for ...A followup question <jkrushen@home.com>
    Re: Problem with file handle(s) <tony@emailcyberscape.net>
        regexp on stream? <b.d.low@unsw.edu.au>
        Removing last space <basvreek@xs5all.nl>
    Re: Removing last space <basvreek@xs5all.nl>
    Re: Removing last space <Michael.Cameron@No.Spam.technologist.com>
        Splitting messages <esugs@csv.warwick.ac.uk>
    Re: Splitting messages <Michael.Cameron@no.spam.technologist.com>
    Re: Splitting messages (Jonathan Stowe)
    Re: Splitting messages <john@NOSPAMpmbbs.demon.co.uk>
    Re: Splitting messages (Jonathan Stowe)
    Re: start a background process and let it go.. <Michael.Cameron@no.spam.technologist.com>
    Re: start a background process and let it go.. <aspinelli@ismes.it>
    Re: Win32 Mail Client (Jonathan Stowe)
        Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Mon, 12 Apr 1999 11:52:13 GMT
From: wmorgan@nswc.navy.mil (Bill Morgan)
Subject: Re: Active State 5.09 Perl processes hanging under NT 4.0
Message-Id: <1999Apr12.114910.4100@relay.nswc.navy.mil>

It looks like v3.6.1 is available at 
http://home.netscape.com/download/selectplatform_103_13.html

In article <3712590a.116480770@enews.newsguy.com>, 
gkeene@[DELETE_THIS]watertown.com wrote:
>Where does one get 3.6.1? I have 3.6 from the distributed Netscape CD (part
>of the software update service), however I don't know where I can get 3.6.1
>(not at http://help.netscape.com/business/filelib.html). Any help? (please
>CC: me via e-mail if you post).
>
>Thanks!
>
>Greg Keene
>
>Raven513 <Ravens@Go-Baltimore.com> wrote:
>
>>Bill Morgan wrote:
>>> 
>>> I just installed Active State Perl 5.09 under NT 4.0.  We are running lots
> of
>>> Perl CGI scripts from our web server, which is Netscape Enterprise v3.6.  It
>>> looks like some of the processes are hanging around after the scripts
> finish,
>>> because every day when I look at the NT task manager, there are 20 or 30
>>> Perl.exe processes in there that don't go away and are soaking up resources.
>>> All of our Perl scripts have explicit "exit" statements in them when they
>>> finish, so I'm not sure what is causing this.  Has anyone else experienced
>>> this problem?  Please email any replies as well as posting to this group.
>>> Thanks!
>>> 
>>> ---------------------------------------------------------------------------
>>> William E. Morgan       NAVAL SURFACE WARFARE CENTER
>>> Code N84                     email: wmorgan@nswc.navy.mil
>>> 17320 Dahlgren Rd.     phone: (540)653-6088
>>> Dahlgren, VA  22448   fax: (540)653-1810
>>
>>
>>Get the Service Pack for Netscape Enterprise Server (v3.6.1).  Seems
>>that the folks at Netscape had a problem with CGI processes hanging on
>>NT when the browser was closed before the process completed.
>>
>>Raven513
>

---------------------------------------------------------------------------
William E. Morgan       NAVAL SURFACE WARFARE CENTER
Code N84                     email: wmorgan@nswc.navy.mil
17320 Dahlgren Rd.     phone: (540)653-6088
Dahlgren, VA  22448   fax: (540)653-1810



------------------------------

Date: 12 Apr 1999 06:09:29 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Backslash escapes w/in *single* quotes?
Message-Id: <3711e279@csnews>

 [courtesy cc of this posting sent to cited author via email]

In comp.lang.perl.misc, Jonathan Feinberg <jdf@pobox.com> writes:
:camel book, which you quote, is not to be taken as
:up-to-date documentation for the Perl language.  

Sure it is.  There have been a few clarifications in the on-line stuff
since then, and there have been some new features, but in this matter,
nothing has changed.  I think your categorical statement is overreaching.


--tom
-- 
    Q. Why is this so clumsy?
    A. The trick is to use Perl's strengths rather than its weaknesses.
            --Larry Wall in <8225@jpl-devvax.JPL.NASA.GOV>


------------------------------

Date: Mon, 12 Apr 1999 11:45:22 GMT
From: mkretsch@infotech.nl (Milko Kretschmann)
Subject: CGI embedded in html
Message-Id: <7esmcj$eq$1@beta.infotech.nl>
Keywords: embedding,html


Is it possible to 'embed' a cgi-script in a html-page.
I know this is for instance possible via an image, but then
the script has to return an image. I want to have it return text.
Another way is via the <!--EXEC CGI-...> tag in SSI, but this 
particular feature is not (yet) supported by my provider. 
Are there any alternatives ?


Milko Kretschmann.


------------------------------

Date: Mon, 12 Apr 1999 14:24:32 +0200
From: Marco Vlemmings <marcov@ctrl-v.nl>
Subject: chmod of a file on a unix platform
Message-Id: <3711E5FF.37AEAD5B@ctrl-v.nl>

Hi

I have a problem. I want to change the directory permissions. The owner
of the directory is 'marco', but when i use the code 'chmod 0755, $dir'
the directory still has the same permissions as before '0733'. Am i
doing something wrong. I know a little bit about Unix.Can anybody help
me?

Width kind regards,

Marco Vlemmings
email: marcov@ctrl-v.nl



------------------------------

Date: Mon, 12 Apr 1999 15:42:50 +0200
From: Andrea Spinelli <aspinelli@ismes.it>
Subject: Re: chmod of a file on a unix platform
Message-Id: <3711F85A.56D3DE69@ismes.it>

Marco Vlemmings wrote:
> when i use the code 'chmod 0755, $dir'
> the directory still has the same permissions as before '0733'.
Why people never check the return value of system calls?

Try:
chmod(0755, $dir) or die("chmod(0755, $dir) failed : $!");

This will tell you more than I can tell from here.

Good Luck
   A.


------------------------------

Date: Mon, 12 Apr 1999 13:07:15 GMT
From: mikecard@my-dejanews.com
Subject: Re: form to email mails twice
Message-Id: <7esr5u$jhv$1@nnrp1.dejanews.com>



> >                         But to be on the safe side try single quotes:
> >
> > $mail = 'firetips@firetips.com';
>
> That works too, and is preferable IMO.  But the other way is correct
> also.



hello all. thanks to all who  responded.  i have just rewritten my script as
suggested and i am still getting double emails. could it be a problem with the
server i'm on (i always ike it beter when it's somebody elses fault but it's
probably not.)

thanks

mike cardeiro

(daja news was screwy for the last week so i was using my bosses news browser,
hence the username change)

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


------------------------------

Date: Mon, 12 Apr 1999 05:37:14 -0500
From: "Chris Harper" <chrish@impacttech.com>
Subject: Grabbing STDOUT in a PERL/CGI environment.
Message-Id: <7esido$49v$1@newsin-1.starnet.net>

I have a Perl script that is launched by Apache. This script turns around
and launches another script, piping it's STDOUT to a handle that is then
read in. This works fine from the command line, but when in a web/CGI call,
the pipe does not work. How can I get the STDOUT of a secondary script that
is launched from the primary script in a CGI environment? My code snippet
follows:

##
## This code works fine when called from the command line.  Nothing is piped
over when in a CGI Environment.
##
sub CallAPI
{
    my $cmdline;
    my $result;

    $cmdline = "testscript ";
    $cmdline .= $_[0];
    $cmdline .= "|";
    $result = "";
    if(!open(FH, $cmdline))
    {
        return "";
    }
    $result = <FH>;
    close(FH);
    $result;
}


Any help is very much appreciated!





------------------------------

Date: Mon, 12 Apr 1999 05:37:14 -0500
From: "Chris Harper" <chrish@impacttech.com>
Subject: Grabbing STDOUT in a PERL/CGI environment.
Message-Id: <7esiei$4b1$1@newsin-1.starnet.net>

I have a Perl script that is launched by Apache. This script turns around
and launches another script, piping it's STDOUT to a handle that is then
read in. This works fine from the command line, but when in a web/CGI call,
the pipe does not work. How can I get the STDOUT of a secondary script that
is launched from the primary script in a CGI environment? My code snippet
follows:

##
## This code works fine when called from the command line.  Nothing is piped
over when in a CGI Environment.
##
sub CallAPI
{
    my $cmdline;
    my $result;

    $cmdline = "testscript ";
    $cmdline .= $_[0];
    $cmdline .= "|";
    $result = "";
    if(!open(FH, $cmdline))
    {
        return "";
    }
    $result = <FH>;
    close(FH);
    $result;
}


Any help is very much appreciated!





------------------------------

Date: Mon, 12 Apr 1999 12:56:53 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: How do i write a program that will spell a word every way possible?
Message-Id: <3711e60e.859905@news.skynet.be>

Tramm Hudson wrote:

>Now this assumes that the elements are distinct.  The string aa
>has two permutations 'aa' and 'aa'.  But I might have those in
>the wrong order.

Well here is my solution. The (my'ed) hash %done serves to prune the
generation of duplicates.

   #! perl -w
   $word = 'HELLO';
   @all = recombine(split //,$word);
   {
      local($\,$,) = ("\n","\n");
      print @all;
   }

   sub recombine {
      # returns an array of all string combinations of parameters
      my(@result,%done);
      for(my $i=0;$i<@_;$i++) {
         my @rest = @_;
         my $first = splice(@rest,$i,1);
         unless($done{$first}++) {
            unless(@rest){
               push @result, $first;
            } else {
               push @result, map { "$first$_" } recombine(@rest);
            }
         }
      }
      return @result;
   }

	Bart.


------------------------------

Date: Mon, 12 Apr 1999 10:35:00 GMT
From: gellyfish@gellyfish.com (Jonathan Stowe)
Subject: Re: How to get yesterday date
Message-Id: <3711cc23.9610623@news.dircon.co.uk>

On Mon, 12 Apr 1999 02:52:48 -0500, Art Gratchev
<art@allianceinter.com> wrote:

>Thanks to Bill Moseley, Larry Rosler, and Ron Reidy for answering my
>previous question on how to get current system date.
>Now, how do I get the yesterday's date? Of course I could write some
>conversion subroutine, but there should be something more gracefull,
>like localtime(time - something)?

You answered your own question - just substitute 86400 in the
appropriate place.

/J\


------------------------------

Date: Mon, 12 Apr 1999 15:35:16 +0200
From: Andrea Spinelli <aspinelli@ismes.it>
Subject: Re: How to pass parameters for perl programs under ActivePerl?
Message-Id: <3711F694.60602AE6@ismes.it>

agniora@usa.net wrote:
> 
> I am using ActivePerl on WinNT platform.
Me too.

> But everytime i have to run a script
> i have to type perl myprog.pl but i need to pass some parameters to my
> program,

What's you problem? Are you tired of typing? If you want to turn
a Perl script to a batch file, try

  pl2bat myprog.pl

You will notice that this creates myprog.bat
Read it! It's a little masterpiece on its own.

> adding parameters to the above line doesnt work cause it gets taken
> as an argument to the perl program not myprog.pl does anyone know any
> workaround to this?
Eh? Why?

Try:
--- file f.pl ---
for(my $i=0;$i<=$#ARGV;$i++ ){
	print "ARGV[$i] == $ARGV[$i]\n";
}
--- end file f.pl

Now type at my dos prompt I type and get:

C:\tmp>perl f.pl a b c d
ARGV[0] == a
ARGV[1] == b
ARGV[2] == c
ARGV[3] == d

Of course, you can also do:
C:\tmp>pl2bat f.pl
C:\tmp>f a b c
ARGV[0] == a
ARGV[1] == b
ARGV[2] == c

What did you do, really? Well, doesn't matter!

Hope This Helps.

If it does not help, change job and do Quality Assurance instead!

:-)

   Andrea


------------------------------

Date: Mon, 12 Apr 1999 15:38:31 +0200
From: Peter Dintelmann <dint@rz.bauboden.com>
Subject: mt tcp server, win32
Message-Id: <3711F757.6EAD@rz.bauboden.com>

Hi,

I am sure "someone" has written a multithreaded tcp server for
Win32 (e.g. using Win32::Process).
Sorry but I cannot find any code examples on the inet. 
Can "someone" please be so kind and tell me where to find a 
useful example or even better send it by email?

TIA!!!

Regards,

	Peter Dintelmann


------------------------------

Date: Mon, 12 Apr 1999 20:30:11 +1000
From: "Pen and Ron Savage" <rpsavage@ozemail.com.au>
Subject: Re: On installing ActivePerl - Build 514 ... does not complete.
Message-Id: <7esi3p$o66$1@reader1.reader.news.ozemail.net>

Build 515 is available.
Use FTP not HTTP to download it.

--
Cheers
Pen and Ron Savage
rpsavage@ozemail.com.au
http://www.ozemail.com.au/~rpsavage
Jason Simms wrote in message <7eoqag$7dq$1@bgtnsc01.worldnet.att.net>...
>> On installing ActivePerl - Build 514 ... does not complete.
>> (ny system is NT, Service pak 3)
>>
>> at 80% completion
>>    i get a "warning" error
>>            ... "Error using perlez.dll"
>>
>> and
>>    i get a "severe" error
>>           ... 'Could not initialize PerlEz module"
>>
>> then installation stops ... when inspecting the setup(trying to use
>> modules), the
>> modules are not all installed.
>>
>> have done this several times, starting over from scratch ... still does
>> not work
>> what am i doing wrong.
>
>Switch to Unix, note that Perl magically works with the first try, throw
>your NT box out the window, and have a nice day...  Seriously, though, we
>would be hard pressed to guess what is wrong from the spartan information
at
>hand.  I have built ActiveState Perl successfully on NT several times, as
>well as 98.  It is probably something in either your hardware configuration
>(for some REALLY strange reason...) or your OS build.  Who knows what weird
>software or registry settings may be causing this to fail...
>
>Jason Simms
>
>
>




------------------------------

Date: Mon, 12 Apr 1999 13:02:51 +0100
From: "Chris Burrows" <chris@a1assured.com>
Subject: Perl skills needed in the UK
Message-Id: <923918270.18966.0.nnrp-09.c2ded930@news.demon.co.uk>

If you have knowledge of Perl then you could be just the person I am looking
for.
My name is Anthony Ovenden and I am a Recruitment Consultant working for A1
Assured Recruitment Limited in London, UK.
One of our clients, based in Surrey, is looking for Web Developers
proficient in CGI, HTML and Javascript and any other web technologies.
Any knowledge or experience of working with cold fusion or C++ would also
be useful.
The client is negotiable on the salary package depending on the experience
of the successful candidate.
For further details on this vacancy please send your resume to me at the
e-mail address below.
Anthony Ovenden
A1 Assured Recruitment Ltd
anthony@a1assured.com





------------------------------

Date: Mon, 12 Apr 1999 10:33:02 GMT
From: "Jordan Krushen" <jkrushen@home.com>
Subject: Re: Privacy for ...A followup question
Message-Id: <yZjQ2.30869$L66.27382@news.rdc1.bc.wave.home.com>

HTTP authentication, being HTTP, and thus on top of the SSL layer, is
encrypted too.

J.

LAN Boy <lan_boy@hotmail.com> wrote in message
news:37116f85.23326755@news.ne.mediaone.net...
> Help me out here:  Exactly what is the concern/problem with using
> "basic authentication" scheme if the connection is being forced to use
> SSL?  Are you concered your present employer might sniff your SSL'd
> login, crack the username/pwd, and then access your website?!  Maybe
> I'm missing something with respect to Basic Auth over SSL?  Is it NOT
> encrypted via SSL, too?





------------------------------

Date: Mon, 12 Apr 1999 13:36:45 +0100
From: "Tony Kenny" <tony@emailcyberscape.net>
Subject: Re: Problem with file handle(s)
Message-Id: <923920344.336.0.nnrp-04.c2de1237@news.demon.co.uk>

Randal wrote a good piec onthis for his Web Techniques columns,

Take a look at: http://web.stonehenge.com/merlyn/WebTechniques/col04.html

regards,

Tony




------------------------------

Date: Mon, 12 Apr 1999 20:11:32 +1000
From: Benjamin Low <b.d.low@unsw.edu.au>
Subject: regexp on stream?
Message-Id: <3711C6D4.21C1958@unsw.edu.au>

I would like to run a s/// regexp over possibly very large, possibly not
line-oriented, files (i.e. 'lines' may be very long, and I can't read
the whole file into memory). Ideally I'd like to be able to run a loop
such as

my $in = IO::File or other IO::Handle;
my $out = IO::File or other IO::Handle;
my $blocksize = POSIX::BUFSIZE;	# any expression spanning this misses
out

1 while (substitute($in, $out, $re, $block_size));

Where substitute() read()s blocks from $in and asks for more input after
matching, and writes to $out as substitutions are made. The tricky bit
in my mind is how to handle 'border crossings' - where a string sits
over two blocks.

About the only way I can see to do it involves substr, i.e.

my $s = '';
while ($in->read($buf, POSIX::BUFSIZ))
{
	$s .= $buf;
	$s =~ s/(pattern)/fn($1)/eg;
	$out->write($s, pos($s));
	substr($s, 0, pos($s)) = '';
}

(provided that I correctly understand what pos() does, I haven't
actually tried it yet :-)
This strikes me as not overly efficient (unless perl does some magic
with substr).

I see that this issue was raised in July 96
(http://www.dejanews.com/[ST_rn=ps]/getdoc.xp?AN=252495857), where there
was talk of something like 

STREAM =~ s/(pattern)/<$1>/;
or a 'refillable' pattern match via a user supplied function

However it seems that this sort of functionality hasn't been
implemented.

Any ideas on avoiding lots o' string manipulations?

-- 
 Benjamin Low, BEng (Comp)
 Communications Unit, University of New South Wales, Australia
 (02) 9385 1138  b.d.low@unsw.edu.au  b.d.low@ieee.org


------------------------------

Date: Mon, 12 Apr 1999 14:54:34 +0200
From: "Bas van Reek" <basvreek@xs5all.nl>
Subject: Removing last space
Message-Id: <7esqd8$ioe$1@weber.a2000.nl>



How do i remove the last space from a variable

I do not mean $foo =~ s/ //g; or chop.
only the last space(s) if there is one.

so "bla bla " needs to become "bla bla"

Thanks




------------------------------

Date: Mon, 12 Apr 1999 15:05:03 +0200
From: "Bas van Reek" <basvreek@xs5all.nl>
Subject: Re: Removing last space
Message-Id: <7esr0t$jdp$1@weber.a2000.nl>

Don't know why, but outlook inludes the word 'file' after $foo= etc ??
where you read file it should be a space.
>
>
> How do i remove the last space from a variable
>
> I do not mean $foo =~ s/ file://g; or chop.
> only the last space(s) if there is one.
>
> so "bla bla " needs to become "bla bla"
>
> Thanks
>
>




------------------------------

Date: Mon, 12 Apr 1999 13:36:44 +0000
From: Michael Cameron <Michael.Cameron@No.Spam.technologist.com>
To: Bas van Reek <basvreek@xs5all.nl>
Subject: Re: Removing last space
Message-Id: <3711F6EB.1B818872@No.Spam.technologist.com>

Bas van Reek wrote:

> How do i remove the last space from a variable
>
> I do not mean $foo =~ s/ //g; or chop.
> only the last space(s) if there is one.
>
> so "bla bla " needs to become "bla bla"
>
> Thanks

What about using chomp with $/ set to a space?
eg:

$foo="bla bla ";
$/=" ";
chomp($foo);

HTH,

Michael




------------------------------

Date: Mon, 12 Apr 1999 11:43:20 +0100
From: John <esugs@csv.warwick.ac.uk>
Subject: Splitting messages
Message-Id: <Pine.GSO.4.05.9904121139310.24313-100000@mimosa.csv.warwick.ac.uk>

Hi,

I need to write a script in perl (or awk, or shell script) that will take
the standard input, split it into 160 character lumps, and send each lump
as a seperate e-mail messgage. 

Anyone got any idea how I could do this?

Cheers
John
 .......
***<another quality e-mail from>***********************
*John Portwin <J.Portwin@csv.warwick.ac.uk> <-termtime*
*             <John@pmbbs.demon.co.uk>      <-hometime*
* Now! Send a message straight to my mobile:          * 
*     johnsmobile@genie.co.uk     (max. 160 chars)    *
*******************************************************



------------------------------

Date: Mon, 12 Apr 1999 11:16:34 +0000
From: Michael Cameron <Michael.Cameron@no.spam.technologist.com>
To: John <esugs@csv.warwick.ac.uk>
Subject: Re: Splitting messages
Message-Id: <3711D612.E576CC25@no.spam.technologist.com>

John wrote:

> Hi,
>
> I need to write a script in perl (or awk, or shell script) that will take
> the standard input, split it into 160 character lumps, and send each lump
> as a seperate e-mail messgage.
>
> Anyone got any idea how I could do this?

Yes.  If you would like to know as well you could start with the
documentation that comes with perl (man perl).
Personally I would use the read function for fixed length records.

>
>
> Cheers
> John
>  .......
> ***<another quality e-mail from>***********************

I dispute the quality of this email.  It comes across as a request for help
from someone who couldn't be bothered helping themself.  Please excuse me if
I am wrong.

>
> *John Portwin <J.Portwin@csv.warwick.ac.uk> <-termtime*
> *             <John@pmbbs.demon.co.uk>      <-hometime*
> * Now! Send a message straight to my mobile:          *
> *     johnsmobile@genie.co.uk     (max. 160 chars)    *
> ******************************************************



------------------------------

Date: Mon, 12 Apr 1999 11:35:36 GMT
From: gellyfish@gellyfish.com (Jonathan Stowe)
Subject: Re: Splitting messages
Message-Id: <3711da0e.13174170@news.dircon.co.uk>

On Mon, 12 Apr 1999 11:43:20 +0100, John <esugs@csv.warwick.ac.uk>
wrote:

>Hi,
>
>I need to write a script in perl (or awk, or shell script) that will take
>the standard input, split it into 160 character lumps, and send each lump
>as a seperate e-mail messgage. 
>
>Anyone got any idea how I could do this?
>

split (the unix utility not the Perl builtin) would probably be the
least fussy way to do that.

/J\


------------------------------

Date: Mon, 12 Apr 1999 13:00:58 +0100
From: "John P" <john@NOSPAMpmbbs.demon.co.uk>
Subject: Re: Splitting messages
Message-Id: <923918389.1142.0.nnrp-08.9e98b683@news.demon.co.uk>


>split (the unix utility not the Perl builtin) would probably be the
>least fussy way to do that.
>

>/J\

Thanks Johnathan, this does indeed split the messages as required. What I
have tried to do is do something like this..

split | mailx xxx@xxx

but when it does its stuff it ends up as one big message again! why?

apologies if this is going off topic..

John







------------------------------

Date: Mon, 12 Apr 1999 13:08:41 GMT
From: gellyfish@gellyfish.com (Jonathan Stowe)
Subject: Re: Splitting messages
Message-Id: <3711efc8.18736830@news.dircon.co.uk>

On Mon, 12 Apr 1999 13:00:58 +0100, "John P"
<john@NOSPAMpmbbs.demon.co.uk> wrote:

>
>>split (the unix utility not the Perl builtin) would probably be the
>>least fussy way to do that.
>>
>
>>/J\
>
>Thanks Johnathan, this does indeed split the messages as required. What I
>have tried to do is do something like this..
>
>split | mailx xxx@xxx
>
>but when it does its stuff it ends up as one big message again! why?
>
>apologies if this is going off topic..
>

Err yes i think it probably is - but here is what I would do :

split -b120 - mps
for file in mps*
do
  mail jonathan.stowe@dircon.net <$file
done
rm mps*   

Of course all of that could be done in Perl but why bother eh ;-?

/J\


------------------------------

Date: Mon, 12 Apr 1999 11:20:17 +0000
From: Michael Cameron <Michael.Cameron@no.spam.technologist.com>
To: Pat Trainor <ptrainor@title14.com>
Subject: Re: start a background process and let it go..
Message-Id: <3711D6F1.7B2657ED@no.spam.technologist.com>

Pat Trainor wrote:

>         I have a main script that must call another script. The parent
> needs to continue regardless of any returns from the child. The child will
> take longer that the parent to close.
>
>         What are the suggestions on how best to do this? I've tried many
> incarnations with no success.
>
> TIA!
>
> pat
> :)
>
> ptrainor@title14.com (key: www.title14.com/pgp/pat.key)
> Programming Rates: I do it: $20 You watch: $40 You help: $80

good examples of parent/child relationships in perl cookbook HTH



------------------------------

Date: Mon, 12 Apr 1999 15:53:12 +0200
From: Andrea Spinelli <aspinelli@ismes.it>
Subject: Re: start a background process and let it go..
Message-Id: <3711FAC8.5F902C26@ismes.it>

Pat Trainor wrote:
> 
>         I have a main script that must call another script. The parent
> needs to continue regardless of any returns from the child. The child will
> take longer that the parent to close.

Pat, will you be so kind to do a simple 'perl -v' and
cut-and-paste it into your newsreader?  If, as often happens,
you are working on Win32, the answer is _quite_ different
from the answer for unix!

If you are using win32, look in your perl installation for
a file called Process.html.  On my installation it is in
 ..lib/site/Win32/Process.html

In the other case (Unix), I see another posting which will
help you much.

HTH
   A.


------------------------------

Date: Mon, 12 Apr 1999 10:42:09 GMT
From: gellyfish@gellyfish.com (Jonathan Stowe)
Subject: Re: Win32 Mail Client
Message-Id: <3711cd94.9980104@news.dircon.co.uk>

On Sun, 11 Apr 1999 16:34:55 +0100, Greg Griffiths <greg2@surfaid.org>
wrote:

>I'm trying to get the equiverlent of Sendmail to work under a win32
>environment, but keep hitting errors, does someone have a nippet of code
>that will allow me to send an email in this environment ?

In lieu of any other information Doris suggests that you try the NT
port of sendmail from

ftp://ftp.microsoft.com/developr/drg/UNIX-to-Windows/Ports/Sendmail/SML1121.zip

And try that.  Alternatively you might post with some more
information.

/J\


------------------------------

Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>


Administrivia:

Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing. 

]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body.  Majordomo will then send you instructions on how to confirm your
]subscription.  This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V8 Issue 5358
**************************************

home help back first fref pref prev next nref lref last post