create_swap.cgi

来自「Unix下基于Web的管理工具」· CGI 代码 · 共 16 行

CGI
16
字号
#!/usr/local/bin/perl# create_swap.cgi# Attempt to create a swap file, and then redirect the browser back to# the mounting program to mount itrequire './mount-lib.pl';&ReadParse();$whatfailed = "Failed to create swap file";$in{cswap_size} =~ /^\d+$/ ||	&error("'$in{cswap_size}' is not a valid size");if ($error = &create_swap($in{cswap_file}, $in{cswap_size}, $in{cswap_units})) {	&error($error);	}&redirect("save_mount.cgi?$in");

⌨️ 快捷键说明

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