addusers.pl
来自「相当优秀的 UNIX 进程管理工具」· PL 代码 · 共 18 行
PL
18 行
#!/usr/bin/perl## this program will read users and password from a file# that is separated by ":" colons## Thanks to "J黵gen Hoffmann" <jh@byteaction.de>use IO::File;my $fh=new IO::File;$fh->open("user.dat");while(<$fh>) { chop; my ($username,$password) = split/:/; # I am assuming they are seperated by colons system("~vpopmail/bin/vadduser","$username\@domain.tld","$password");$fh->close;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?