restart_mountd.cgi

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

CGI
13
字号
#!/usr/local/bin/perl# restart_mountd.cgi# Do whatever is needed to apply changes to the exports filerequire './bsdexports-lib.pl';$whatfailed = "Failed to apply changes";$out = `($config{'restart_command'}) </dev/null 2>&1`;if ($?) {	# something went wrong.. display an error	&error($out);	}&redirect("");

⌨️ 快捷键说明

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