⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 UNIX下perl实现代码
💻
字号:
This archive contains the following files:README - the README file which explains how to use this program (this file)get_jdk.pl - the program to download JDKjdk_hosts - the descriptor file required by the programNate Patwardhan (nvp@oreilly.com) wrote get_jdk.pl to automate thedownload of JDK (Java Development Kit) from a distribution site basedon your Unix flavor.  This program is based on some of the examplesfound in the LWP cookbook that was included with your LWP distribution.Current Unix flavors that appear in the descriptor file (moresuggestions from Beta testers will be welcomed):	Solaris	Linux	FreeBSDTo use get_jdk.pl properly, you *must* have LWP (libwww) and itsdependencies installed.  Once you've installed LWP, you should be ableto use this module without any problems on any Unix flavor.By default, get_jdk.pl uses #!/usr/local/bin/perl in its shebang path,so you may have to execute get_jdk.pl like:	perl get_jdk.pl-OR-	perl5 get_jdk.plbased on your site's Perl installation.get_jdk.pl reads the $^O to determine what Unix flavor you're using,and compares the value of $^O to the first field shown in thedescriptor file, jdk_hosts.  For example, $^O for Solaris versions ofPerl is: 'solaris'; Solaris is represented in the descriptor filelike:	solaris=>ftp://ftp.javasoft.com/pub/jdk1.1/jdk1.1.3-solaris2-sparc.binWhen get_jdk.pl reads the descriptor file, it splits the fields on'=>', and reads them into a hash, %HOSTS.  get_jdk.pl then comparesthe value of $^O to $HOSTS{'osname'}, and returns the address of theJDK distribution site if $^O eq $HOSTS{'osname'}.  If there is not amatch, get_jdk.pl fails.get_jdk.pl represents the hostname of distribution sites in URLformat: protocol://hostname.some.com/path/filename.extension  When a URL is found, get_jdk.pl parses out the filename; this issignificant, because the output from the remote host is directed tothe file parsed from the URL.When you execute get_jdk.pl, you'll know it's working correctly if itoutputs something like:	A JDK port for your OS has been found.	Contacting:	ftp://ftp.javasoft.com/pub/jdk1.1/jdk1.1.3-solaris2-sparc.bin	Attempting to download: jdk1.1.3-solaris2-sparc.bin	0% - 1460 bytes received	0% - 4380 bytes received	0% - 7300 bytes received	0% - 8192 bytes received	[etc etc etc until you reach 100%]Future (PRK release) versions of get_jdk.pl will allow the user toupdate the descriptor file from the ora.com (oreilly.com) FTP/WWWsite.  This version does not support the -update flag.Happy JDK'ing!  :-)--Nate Patwardhannvp@oreilly.com

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -