Perl php script auto install?
I was think of learning Perl cause I hear around town its good for system admin things. Would it be possible to use it to automatically install a php script? I need to install a custom script on a few different server and wanted to know how I could make something in Perl to do it (like move scripts over to director开发者_开发问答y and stuff)?
Yes, Perl can easily do that (and a lot more).
You can use File::Copy
module to move/copy files around, or if you need to FTP them to different server, Net::FTP
module.
i dont really know very bien perl scripts but i think these example scripts for irc installs and configures could help you! :) http://variant.googlecode.com/files/perl.txt http://variant.googlecode.com/files/allnet.pl
As far as I am aware of, in terms of sysadmin scripts PHP can do what ever Perl can do.
精彩评论