How to install Perl modules?

bazzacad

Explorer
Joined
May 1, 2019
Messages
53
I'm trying to convert one of my perl scripts that runs as a cron job on my CentOS file server to run on my FreeNAS instead.
The script has this:
use Mail::Mailer;

How do I install this module in FreeNAS/FreeBSD?

Module info:
https://metacpan.org/pod/Mail::Mailer
 
D

dlavigne

Guest
You don't install software on FreeNAS itself. You could install it into a jail, but that may not be the point of your script.
 

bazzacad

Explorer
Joined
May 1, 2019
Messages
53
Thanks for the reply. My old script on my file server would do some file maintenance clean up, like delete old .bak files that are automatically generated that are over 2 weeks old and then email me a report of what was deleted. I'm assuming that's not possible in a jail is it?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
You can do just about anything in a jail that you could do in a standalone FreeBSD installation, with a few exceptions that would involve direct hardware access. Make sure the jail has access to those old files and you should be good to go.
 

bazzacad

Explorer
Joined
May 1, 2019
Messages
53
Thanks, then do I use the Mount Point to give the Jail access to the dataset?
And then I'm just running a cron job in FreeBSD, instead of the task UI in FreeNAS?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Thanks, then do I use the Mount Point to give the Jail access to the dataset?
And then I'm just running a cron job in FreeBSD, instead of the task UI in FreeNAS?
Exactly.
 
Top