----- Original Message -----
From: "John" <[EMAIL PROTECTED]>
To: "Perl Beginners" <[email protected]>
Sent: Saturday, December 18, 2004 6:22 PM
Subject: trying to chroot perl and its modules
copied the /usr/bin/perl to the /chroot/usr/bin/perl
and the /usr/lib/perl5 to the /chroot/usr/lib/perl5
now when i try to run a perl script for example
#!/usr/bin/perl
use MIME::Lite;
$msg = MIME::Lite->new(
Type =>'text/html',
From =>'[EMAIL PROTECTED]',
To =>'[EMAIL PROTECTED]',
Subject =>"Hello",
Data => qq { Hello }
);
$msg->send('smtp', 'host.com');
with the command
/usr/sbin/chroot /chroot/ /usr/bin/perl /mail.pl
i receive the error
Failed to connect to mail server: No such file or directory
at /mail.pl line 19 ($msg->send('smtp', 'host.com')
This script works well outside the chroot area.
What is wrong with that?
Any ideas?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>