[code]#! /usr/bin/perl use strict; # 使用 IO::Socket 模組 use IO::Socket; # 取得命令列中的網頁位址,放入 $url 中 my $url=shift || die "您沒有輸入 url 網址!\n"; # 比對網頁位址是否合乎格式? my ($host, $file) = $url =~ m!http://([^/]+)(/[^\#]*)!; #(註1) # 若比對正確,才抓取 if ($host) { # 產生一個 IO::Socket::INET 物件 my $socket = IO::Socket::INET->new( PeerAddr => $host, # 指定主機位址...
by shihyu - Perl - 2006-10-06 20:20:15 阅读(1281) 回复(1)
小弟最近发现在rh9中修改grub中的关于根文件系统的权限的问题。 不管你使用ro或者rw,最后出来的根文件系统都是rw状态。 如果删除rc.sysinit中的mount -n -o remount,rw / 那么 / 文件系统始终是ro的状态。和grub中的指定无关。 是不是rh9中编译内核有什么选项?
请问, 有的, $ commandddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd 填满一行后会自动到下一行继续输入命令。 有的, $ command asdkfjklsdjfkldsjfklj < 超过一定字符数后,<说明当前命令之前还有命令。 请问能控制是哪种方式吗?在第二种情况下,能控制多少个字符后出现<吗?
There's nothing quite like command-line tools for handling large batches of tasks, and image manipulations are no exception. Web developers and administrators will appreciate the ability to handle large numbers of files easily, either at the command line or in scripts. Programmer Michael Still presents the ImageMagick suite, a Linux toolkit for sizing, rotating, converting, and otherwise manipula...
各位好: 请教一个大虾们,在命令行下发送邮件的时候,加上" < /dev/null "是什么含义? 谢谢! 如: /usr/sbin/sendmail -v [email]you@someother.site[/email] < /dev/null
To change the names of abc*.def files to def*.abc, I try to do it by using Perl. I write the command as following: %ls abca.def abcabc.def abcbb.def abcccc.def %ls *.def | perl -n -e '$a=$_; s/abc/def/; s/\.def/\.abc/; system("mv $a $_")' mv: no enough parameters sh:defa.abc: command not found .. .. .. % In the "system()", "mv $a $_" was splited into two independent statement. mv $a $_ why:?:...
在redhat 9下安装oracle,修改.bash_profile文件,总是报错,通不过。unexpected end of file .bash_profile这样了还是不行: # .bash_profile # Get the aliases and functions # if [ -f ~/.bashrc ]; then # . ~/.bashrc # fi # User specific environment and startup programs # unset USERNAME # umask 022 # export EDITOR=vi # export TERM=xterm # export TMPDIR=/tmp 请问哪儿出错了?
command Description Ctrl + P Previous command Ctrl + U Clear line and Put in Buffer Ctrl + W Delete Word Backwards and Put in Buffer Ctrl + Y Paste Buffer Contents Ctrl + E End line Ctrl + A Beginning line Ctrl + X Clear line to the Left and Put in Buffer Ctrl + T Flip Last 2 Characters Ctrl + F Forward Character Ctrl + B Backward Character Ct...
在精华区找到予默的一篇不错的资料,特收录于此。 Solstice Disksuite Location of components ---------------------- command line utilities in /usr/opt/SUNWmd/sbin driver modules in /kernel/drv and /kernel/misc daemons in /usr/opt/SUNWmd/sbin administrative files in /etc/opt/SUNWmd metadevices are named /dev/md/{dsk|rdsk}/dn, with n from 0 to 127 by default the packages are SUNWmd and SUNWmdg ...