上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 38 下一页
摘要: #!/usr/bin/perl use IPC::SysV qw(IPC_PRIVATE IPC_CREAT S_IRWXU); use IPC::Msg; my $queue = IPC::Msg->new(IPC_PRIVATE, S_IRWXU | IPC_CREAT); $msgtype = 阅读全文
posted @ 2019-12-10 11:47 kissrule 阅读(318) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/f-ck-need-u/p/9693675.html fork是低层次的系统调用,通过复制父进程来创建子进程。 #!/usr/bin/perl use 5.010; my $pid=fork(); say $pid, " "; fork用来拷贝当前进程 阅读全文
posted @ 2019-12-10 11:05 kissrule 阅读(626) 评论(0) 推荐(0) 编辑
摘要: $|是perl的内置变量,默认情况下是0,如果设置为非0的话,表示当前的输出不经过缓存立刻输出。相当于c语言的fflush()函数,立即刷新缓冲区。 比如你print或者write一个文件,实际是需要经过缓存的,但是设置该变量非0后就不经过缓冲立刻输出了 不过perl的只要一次设置$|=1,那么程序 阅读全文
posted @ 2019-12-10 09:56 kissrule 阅读(990) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/www_helloworld_com/article/details/85019862 阅读全文
posted @ 2019-12-09 14:21 kissrule 阅读(292) 评论(0) 推荐(0) 编辑
摘要: use Net::OpenSSH;our $PC2 = "testPC2";our $pc2_ssh = Net::OpenSSH->new( "$PC2", user => "root", password => "password", master_opts => [-o => "StrictH 阅读全文
posted @ 2019-12-09 10:38 kissrule 阅读(291) 评论(0) 推荐(0) 编辑
摘要: -> 有两种用法,都和解引用有关。第一种用法,就是解引用。根据 -> 后面跟的符号的不同,解不同类型的引用,->[] 表示解数组引用,->{} 表示解散列引用,->() 表示解子程序引用。例子:$arr_ref = @array;$arr_ref->[0] 访问数组 @array 的第一个元素。$h 阅读全文
posted @ 2019-12-06 14:28 kissrule 阅读(232) 评论(0) 推荐(0) 编辑
摘要: wipe out 了结,擦掉;彻底摧毁; wipeout 失败,大丢丑; 阅读全文
posted @ 2019-12-05 17:57 kissrule 阅读(246) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/perl use Log::Log4perl qw(:easy); Log::Log4perl->easy_init($INFO); drink(); drink("Soda"); sub drink { my($what) = @_; my $logger = get_log 阅读全文
posted @ 2019-12-05 16:28 kissrule 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 针对非服务器用户,只是用普通的Ubuntu桌面用户,嫌密码麻烦可以这么设置一下。。。。。。。。。一 设置sudo为不需要密码需要编辑/etc/sudoers文件将用户加入,该文件只能使用vi sudo命令,1) 首先需要切换到root, su - (注意有- ,这和su是不同的,在用命令"su"的时 阅读全文
posted @ 2019-11-29 17:58 kissrule 阅读(3013) 评论(0) 推荐(0) 编辑
摘要: 1.系统设置->键盘 2.添加自定义的快捷键 名称:full-terminal 命令:gnome-terminal --full-screen 快捷方式:ctrl+alt+f 阅读全文
posted @ 2019-11-26 15:52 kissrule 阅读(1040) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 38 下一页