我有一个相当长的bash脚本。我想用漂亮的 不错的运行./test1.scr 如果我不漂亮运行脚本,它的伟大工程。但是,当我运行它很好。在我的脚本中运行的命令失败。 commandout=()
while IFS= read -r line # Read a line
do
commandout+=("$line") # Append line to the array
done
我有一个运行一些作业的bash脚本。有时我希望能够通过nice运行这些作业来降低它们在服务器上的优先级。 例如,如果我的可执行文件是a.out,我可以从终端nice a.out运行以降低作业优先级。 在我的bash脚本中,我有一个变量NICE。我做了以下两件事情之一: # either nice is set
NICE="nice"
# or it is left unset
NICE="
我有这些功能在我的.bashrc中使用的功能(这是一个字符串PARAM): # This function just untar a file:
untar()
{
tar xvf $1
}
# This function execute a command with nohup (you can leave the terminal) and nice for a low p