列表9.8.txt

来自「klinux书籍的配套光盘。可以学习学习。」· 文本 代码 · 共 13 行

TXT
13
字号
【列表9.8】runsu2脚本程序。
# runsu2: Shell script to run a program as superuser - Part 2
# Usage: runsu2 <executable_file_name> [arg1] [arg2] .. [arg7]
# Notes: 1. It's assumed you've already logged on as the superuser
#           by running the runsul script.
#       2. The file libpath.tmp is located in the *user's* home directory,
#           *not* in reot's home directory!
# Get the path to the Kylix shared objects library
source libpath.tmp
export LD_LIBRARY_PATH
# Now run the program
"$1"  "$2"   "$3"   "$4"    "$5"    "$6"  "$7"  "$8"

⌨️ 快捷键说明

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