Connecting with it and being able to send mail from it are two
different
things. Did you try setting the Hello option to something you know will
work? Did you turn on the Debug option? What does it say?
I was able to send email telnetting to the SMTP daemon, so I know it
was doing more than just
Is there a more detailed debugging option to use on perl besides -w? I am
currently using #!/bin/perl -w but it does not catch the error I am running
into. Something equivalent to the -x option shell scripts use, would be
really useful. The script is used for printing to an IBM printer. It
determin
Could this be the old carrage return/linefeed problem?
Windows puts both a carriage return and a linefeed after each return.
Unix uses only one of them.
Mac OS (7-9.21) uses the other.
I don't have an ascii chart handy, but maybe someone else could shed more
light on this.
On Thursday 23 Janu
After you read it in from a file do you chomp (@list_names)? If you don't
then there is a "\n" on the end that the hash function will see and say that
there is no data associated with that key. Perl Windows may automatically
ignore this I don't know.
Matt Schneider
Programmer/System Administrat
I would try
$string2 = $string1;
$string2 =~ s%[-\.]%/%;
Matt Schneider
Programmer/System Administrator
SKLD Information Services, LLC
-Original Message-
From: Jon Shorie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 8:27 AM
To: [EMAIL PROTECTED]
Subject: [Perl-unix-u
Ok, for those of you that ask for an example:
in windows I read a file and store as hash, let's say %gen.
@keys=%gen;
print $keys[0];#will produce the rigth thing, 'At1G0100'
But if in Unix I read a list from a file, let's say @list_names
print $list_names[34];# will produce 'At1G0100', and
p
>From: Jon Shorie [mailto:[EMAIL PROTECTED]]
>
>I am hitting a mental block on this. I know that it is probably simple,
but I
>will ask anyway. I am trying to convert a string of the form:
>
>$string1 = "900/00-2.3"
>
>to
>
>$string2 = "900/00/2/3"
>
>Here is what I have so far:
>
>
>($n1,$r2)
I am hitting a mental block on this. I know that it is probably simple, but I
will ask anyway. I am trying to convert a string of the form:
$string1 = "900/00-2.3"
to
$string2 = "900/00/2/3"
Here is what I have so far:
($n1,$r2) = split(/-/, $string1);
($n2,$n3) = split(/./, $r2);
$string
> $ telnet foohost 25
> 220 foohost Microsoft ESMTP MAIL Service, Version:
> 5.0.2195.5329 ready at Thu, 23 Jan 2003 09:47:19 -0500 HELO
> 250 foohost Hello [xxx.xxx.xxx.xxx] ... ...
>
> So, I know that there is a smtp daemon running on foohost,
> and that the machine I am running on can commu
I am attempting to write a mailing script using Net::SMTP. My code looks
something like this:
$smtp = Net::SMTP->new("foohost");
$smtp->mail("david");#This is line #53 in my program
And I get the following error:
Can't call method "mail" on an undefined value at C:\mailit.pl line 53.
So, I
Hi all;
Here is my problem
I have a nice script running fine in Windows.
When I take it to Unix or Linux, it doesn't work.
The problem seems to be the keys of a hash. Both win and unix create
the hash rigth, but unix doesn't recognize words of a list as valid
keys of the hash. To the naked eye, I
Title: RE: Remote executing a script using perl
We are behind a firewall on a secure network
-Original Message-
From: Thomas_M [mailto:[EMAIL PROTECTED]]
Sent: 23 January 2003 04:00
To: 'Mundell, R. (Ronald)'; Perl-Unix-Users (E-mail); Perl-Win32-Users
(E-mail)
Subject: RE: Remote ex
Title: Remote executing a script using perl
Perl's Net::Telnet and Net::SSH allow you to connect and perform commands
using the respective protocol. I have use Net::Telnet to connect to a
remote machine and perform a mount operation so that I can then FTP data from
that mount but I could use
> Is it possible to execute a script remotely on another PC from a perl
> script. If so what must I use to accomplish this task
> Ronald
There are many, many ways to do this. You really should be more specific
about your needs. Is this communication between two large systems where you
would like
Title: Remote executing a script using perl
I am
trying to execute a remote script. I have to log onto the box to be able to do
this
-Original Message-From: Matt Schneider
[mailto:[EMAIL PROTECTED]]Sent: 23 January 2003
03:17To: 'Mundell, R. (Ronald)'; Perl-Unix-Users (E-mail)
Title: Remote executing a script using perl
Ronald,
I
don't now your security requirements but you could try either the Telnet or SSH
module.
Matt Schneider Programmer/System Administrator SKLD Information
Services, LLC
-Original Message-From: Mundell, R. (Ronald)
[mailto:[EM
you can specify a hostname like: mysql.x.com, if the sql server is not in
the localhost, so it can be... did you try it?
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf
> Of Ken Hilliard
> Sent: Thursday, January 23, 2003 9:00 AM
> To: [EMAIL PROTECTED]
Title: Remote executing a script using perl
Good Day All
Is it possible to execute a script remotely on another PC from a perl script. If so what must I use to accomplish this task
Ronald
18 matches
Mail list logo