Re: trying to chroot perl and its modules

2004-12-18 Thread John
- Original Message - From: "Jonathan Paton" <[EMAIL PROTECTED]> To: "John" <[EMAIL PROTECTED]>; "Perl Beginners" <[EMAIL PROTECTED]> Sent: Saturday, December 18, 2004 9:31 PM Subject: Re: trying to chroot perl and its modules > > Well, i am trying to figure out what i have forgotten to

Re: trying to chroot perl and its modules

2004-12-18 Thread Jonathan Paton
> Well, i am trying to figure out what i have forgotten to copy into > the chroot jail. Why should my experiment not work? I cannot > see any reason of not working. My mistake, reading again I find your script is called "mail.pl". The problem is disguised by Mime::Lite, as the actual file is not

Re: trying to chroot perl and its modules

2004-12-18 Thread John
- Original Message - From: "Jonathan Paton" <[EMAIL PROTECTED]> To: "John" <[EMAIL PROTECTED]>; "Perl Beginners" <[EMAIL PROTECTED]> Sent: Saturday, December 18, 2004 6:54 PM Subject: Re: trying to chroot perl and its modules > > with the command > > > > /usr/sbin/chroot /chroot/ /usr/b

Re: trying to chroot perl and its modules

2004-12-18 Thread Jonathan Paton
> 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. Problem is either a misunde

trying to chroot perl and its modules

2004-12-18 Thread John
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]