How to send "Net Send" messages from a Linux Server

2004-05-24 Thread LRMK
I want to write a Perl script to send net send messages to the windows based computers but my scripts are running on Linux computer. So I can't use $results = `NET SEND $IP_ADDR blah blah blah blah `; how to do this on a linux computer I think that I will have to connect to the receivers port 13

RE: matrix solving

2004-05-24 Thread Boon Chong Ang
Hi, Can some one provide an example sample on how to use it? Thank you & best regards, ABC -Original Message- From: Jose Alves de Castro [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 6:24 PM To: Boon Chong Ang Cc: [EMAIL PROTECTED] Subject: Re: matrix solving Try using Math::Ma

Re: Determine Email Headers

2004-05-24 Thread Mike Blezien
Wiggins d'Anconia wrote: Definitely more clear. See if my comments help, if not fire off some more questions :-). This is why I (and others) are so adamant about not handling mail directly, amazing that such a complex beast can be made to seem so simple *most* of the time... http://danconia.o

Re: Determine Email Headers

2004-05-24 Thread Mike Blezien
Wiggins d'Anconia wrote: Mike Blezien wrote: Read below [snip] Basically what we have is a piped forwarding script that when a "fake" email address, IE "[EMAIL PROTECTED]" is recieved it's piped to script: #!/usr/bin/perl ## use M

Re: Determine Email Headers

2004-05-24 Thread Wiggins d'Anconia
Mike Blezien wrote: Read below [snip] Basically what we have is a piped forwarding script that when a "fake" email address, IE "[EMAIL PROTECTED]" is recieved it's piped to script: #!/usr/bin/perl ## use Mail::Audit; use DBI; use st

Re: Determine Email Headers

2004-05-24 Thread Mike Blezien
Read below Wiggins d'Anconia wrote: Please bottom post... Mike Blezien wrote: This is what comes in the body of the email message if it's not plain text message and need to pass the email with the right headers so it's displayed correctly when received: Right, but the message itself is MIME and

Re: Determine Email Headers

2004-05-24 Thread Wiggins d'Anconia
Please bottom post... Mike Blezien wrote: This is what comes in the body of the email message if it's not plain text message and need to pass the email with the right headers so it's displayed correctly when received: Right, but the message itself is MIME and multipart. So I don't understand fro

Re: Determine Email Headers

2004-05-24 Thread Mike Blezien
This is what comes in the body of the email message if it's not plain text message and need to pass the email with the right headers so it's displayed correctly when received: Message Body content: This is a multi-part message in MIME format. --=_NextPart_000_0013_01C4419E.02807DF0 Cont

Re: Determine Email Headers

2004-05-24 Thread Mike Blezien
What I was getting at, is a email is sent as a standard plain text message, the body content of the message is sent with no problems, but if the message is sent as HTML formatted email, then all the HTML elements, tags...etc are included in the body of the message so I was wondering, when us

Re: Question of memory management in Perl

2004-05-24 Thread Wiggins d Anconia
> > Hi all, > I have question with respect to memory utilization using perl. I am reading a huge file close to 786432 lines of hex values & am storing in an array. I do a data reformatting using the data in these array & in the sequence of process generate a number of arrays & eventually write int

Question of memory management in Perl

2004-05-24 Thread Hari Krishnaan
Hi all, I have question with respect to memory utilization using perl. I am reading a huge file close to 786432 lines of hex values & am storing in an array. I do a data reformatting using the data in these array & in the sequence of process generate a number of arrays & eventually write into a

Re: Question of memory management in Perl

2004-05-24 Thread Eric Walker
off the top of my head I would suggest you slice off the slice off the pieces that you have used already when pulling data from the original array. That way the array gets smaller as you finish modifiying its info and transferring it somewhere else. BassFool On Monday 24 May 2004 02:57 pm, Ha

Re: Determine Email Headers

2004-05-24 Thread Wiggins d Anconia
> Hello, > > we're currently using the Mail::Audit module to process a perl script that pipes > email sent to "fake" forward emails address, then send it's to a real > address,... all works fine except if it's a HTML formatted email. My question > is, is it possible with this module to determin

Question of memory management in Perl

2004-05-24 Thread Hari Krishnaan
Hi all, I have question with respect to memory utilization using perl. I am reading a huge file close to 786432 lines of hex values & am storing in an array. I do a data reformatting using the data in these array & in the sequence of process generate a number of arrays & eventually write into a

Determine Email Headers

2004-05-24 Thread Mike Blezien
Hello, we're currently using the Mail::Audit module to process a perl script that pipes email sent to "fake" forward emails address, then send it's to a real address,... all works fine except if it's a HTML formatted email. My question is, is it possible with this module to determine if it's HTM

Re: multiple pages results

2004-05-24 Thread JupiterHost.Net
Cristi Ocolisan wrote: Hello everybody, While interrogating a MySQL database, I'm trying to split the results into multiple pages. I don't know where I'm going wrong. When I run the script below, only the number of pages is printed on screen. Can anyone help? You may want to check out Dat

Re: Modify $0 in Perl embedded in C

2004-05-24 Thread JupiterHost.Net
Just a note: I also tried $main::0 as well as $0 (as in perl -e '$0 = "foo";print "$0\n";' perl -e '$main::0 = "foo";print "$0\n";') after I used caller() to make sure it was in main::. Any ideas? JupiterHost.Net wrote: Hello group! Maybe a bit much for a beginners list (I looked and looked and

Re: Modify $0 in Perl embedded in C

2004-05-24 Thread JupiterHost.Net
Just a note: I also tried $main::0 as well as $0 (as in perl -e '$0 = "foo";print "$0\n";' perl -e '$main::0 = "foo";print "$0\n";') after I used caller() to make sure it was in main::. Any ideas? JupiterHost.Net wrote: Hello group! Maybe a bit much for a beginners list (I looked and looked and

Connecting to Oracle over network

2004-05-24 Thread jason corbett
Hello. I am using Windows 2000 to connect to an Oracle database over the company network. I have the DBI/DBD drivers installed on my computer. I want to connect using the script below. When i run the script, it doesn't come back with anything. It just goes to the command prompt. Can someone tell

Returned eMail: User Unknown

2004-05-24 Thread Bouncer
Your Mail has been bounced from the OutPost/1.800eMail Server Because "[EMAIL PROTECTED]" is not a valid username Original message, less any attachments, follows: --- Begin Message --- --As of Monday, May 24, 2004 8:43 AM +0600,

Re: String issue?

2004-05-24 Thread Jeff 'japhy' Pinyan
On May 24, Werner Otto said: > system("ping -s localhost 56 1"); > >This will echo: > > 64 bytes from localhost (127.0.0.1): icmp_seq=0. time=0. ms > >How do I get this echo'd value as a string value? I will be splitting this >string up into segments to fill my fields in my database ta

Re: Missing Component

2004-05-24 Thread Jeff 'japhy' Pinyan
On May 24, [EMAIL PROTECTED] said: >I have a program with some ftp code in it. This is working fine on a Unix >machine but is giving the following error on a Windows machine. > >>Can't locate Net/FTP.pm in @INC at >\\mmpapp01\nal_sd\gxsftp\programs\get-edi.pl line 17. You appear to be missing the

Re: array output

2004-05-24 Thread DBSMITH
this will work! thanks! one more question... I am setting an array up to be the output of a system app command like this my @ftapes = system (evmvol -w label_state=3|grep barcode"); print $ftapes[0]; it prints everything...meaning 5 lines. Or when I say print $ftapes[0,1] it errors saying "

perl.beginners Weekly list FAQ posting

2004-05-24 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

Manfred Beilfuß/DVAG ist außer Haus.

2004-05-24 Thread Manfred . Beilfuss
Ich werde ab 13.05.2004 nicht im Büro sein. Ich kehre zurück am 04.06.2004. Ich werde Ihre Nachricht nach meiner Rückkehr beantworten. In dringenden Fällen die DB-Administration betreffend, bitte eine entsprechende Note an die Adresse dba-intel bzw. dba-host senden -- To unsubscribe, e-mail: [

Re: A MySQL Question

2004-05-24 Thread Daniel Staal
--As of Monday, May 24, 2004 8:43 AM +0600, LRMK is alleged to have said: By the way is PostgreSQL free and if yes where can I get a copy to practise myself. --As for the rest, it is mine. Yes: Daniel T. Staal ---

Re: String issue?

2004-05-24 Thread Mandar Rahurkar
one way to do this is to cat the output of ping to a file..or simply.. @u_there=`ping -s localhost 56 1`; # watch the quotes Mandar Original message >Date: Mon, 24 May 2004 11:58:18 +0100 >From: Werner Otto <[EMAIL PROTECTED]> >Subject: String issue? >To: [EMAIL PROTECTED] > >Hi Th

Re: get hash from array

2004-05-24 Thread James Edward Gray II
On May 24, 2004, at 8:06 AM, [EMAIL PROTECTED] wrote: I had the idea that something like: sub xpto { my %a; [EMAIL PROTECTED] = (); @[EMAIL PROTECTED] = (); return \%a; } should work. Make the inline change above and it will. James Obviuslly this idea will be used in major subroutines. Tha

Re: get hash from array

2004-05-24 Thread Jose Alves de Castro
On Mon, 2004-05-24 at 14:09, Jose Alves de Castro wrote: > On Mon, 2004-05-24 at 13:46, [EMAIL PROTECTED] wrote: > > sub xpto { > >my %a = map {$_ => undef} (@_); > >return \%a; > > } > > > > or > > > > sub xpto { > >return {map {$_ => undef} (@_)}; > > } > > > > > > I'm using this

Re: get hash from array

2004-05-24 Thread Jose Alves de Castro
On Mon, 2004-05-24 at 13:46, [EMAIL PROTECTED] wrote: > sub xpto { >my %a = map {$_ => undef} (@_); >return \%a; > } > > or > > sub xpto { >return {map {$_ => undef} (@_)}; > } > > > I'm using this code but shall exist someting clearner without map. Can you > help me? If what you

Missing Component

2004-05-24 Thread Satya_Devarakonda
Hi, I have a program with some ftp code in it. This is working fine on a Unix machine but is giving the following error on a Windows machine. >Can't locate Net/FTP.pm in @INC at \\mmpapp01\nal_sd\gxsftp\programs\get-edi.pl line 17. >BEGIN failed--compilation aborted at \\mmpapp01\nal_sd\gxsftp

RE: get hash from array

2004-05-24 Thread Marcos . Rebelo
> -Original Message- > From: James Edward Gray II [mailto:[EMAIL PROTECTED] > Sent: Monday, May 24, 2004 3:00 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: get hash from array > > > On May 24, 2004, at 7:46 AM, [EMAIL PROTECTED] wrote: > > > sub xpto { > >my %a =

Re: get hash from array

2004-05-24 Thread James Edward Gray II
On May 24, 2004, at 7:46 AM, [EMAIL PROTECTED] wrote: sub xpto { my %a = map {$_ => undef} (@_); return \%a; } or sub xpto { return {map {$_ => undef} (@_)}; } I'm using this code but shall exist someting clearner without map. Can you help me? I find map() to be the ideal solution. That'

get hash from array

2004-05-24 Thread Marcos . Rebelo
sub xpto { my %a = map {$_ => undef} (@_); return \%a; } or sub xpto { return {map {$_ => undef} (@_)}; } I'm using this code but shall exist someting clearner without map. Can you help me? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: How get a special value of an arrayfield stored in an hash?

2004-05-24 Thread Jan Eden
Hi Bastian, Bastian Angerstein wrote on 24.05.2004: >I tought: >$index = 1 > >$var = ${$myhash{mykey}}[$index]; > >would do the trick. > >But it don´t. > > >Any suggestions? > > Your syntax implies that there already is an anonymous array stored as value of $myhash{mykey}. You assign the second

Re: How get a special value of an arrayfield stored in an hash?

2004-05-24 Thread Ricardo SIGNES
* Bastian Angerstein <[EMAIL PROTECTED]> [2004-05-24T08:07:37] > $index = 1 > $var = ${$myhash{mykey}}[$index]; $var = $myhash{mykey}[$index] $var = $myhash{mykey}->[$index] Either will do. -- rjbs pgpc308dwTSbR.pgp Description: PGP signature

How get a special value of an arrayfield stored in an hash?

2004-05-24 Thread Bastian Angerstein
I tought: $index = 1 $var = ${$myhash{mykey}}[$index]; would do the trick. But it don´t. Any suggestions? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: String issue?

2004-05-24 Thread Ramprasad A Padmanabhan
Werner Otto wrote: Hi There, I am having trouble with string creation. I need to do something like: system("ping -s localhost 56 1"); This will echo: 64 bytes from localhost (127.0.0.1): icmp_seq=0. time=0. ms How do I get this echo'd value as a string value? I will be splitting this stri

Re: String issue?

2004-05-24 Thread Anders Holm
Hi Otto. Sounds like you are rolling your own monitor applicaiton? Without having tested this, I'd say: my $result = system("ping -s localhost 56 1"); Or, do you wish to receive multiple results for that one command? I'm wondering, is this really the optimail solution to your problem.

String issue?

2004-05-24 Thread Werner Otto
Hi There, I am having trouble with string creation. I need to do something like: system("ping -s localhost 56 1"); This will echo: 64 bytes from localhost (127.0.0.1): icmp_seq=0. time=0. ms How do I get this echo'd value as a string value? I will be splitting this string up into s

Re: using environment proxy variables for LWP::Simple

2004-05-24 Thread Beau E. Cox
On Sunday 23 May 2004 08:25 pm, Ramprasad A Padmanabhan wrote: > I have got a simple script that is straight out of the man page for > Tie::Google. My problem is the script simply hangs. I bet this is > because it is not able to use the environment proxy variables > > I have set my proxy ( require

Thread::Pool

2004-05-24 Thread Anders Holm
Hi Folks. I've got a question regarding Thread::Pool. Basicaly, I'll be migrating a rather large user base over one weekend. I've so far got everything sorted out so that I can parse out all the data into flat text files, and can then start doing the migration. So, my next worry then is to ensure

multiple pages results

2004-05-24 Thread Cristi Ocolisan
Hello everybody, While interrogating a MySQL database, I'm trying to split the results into multiple pages. I don't know where I'm going wrong. When I run the script below, only the number of pages is printed on screen. Can anyone help? #!/usr/bin/perl use CGI ":all"; use