在共享服务器上浏览进程时,top
我不小心按下了r
提示我renice
. 我不知道这会对我的输入产生什么影响,并且找不到回去的方法。
我试过^C
,^D
,<ESC>
除其他事项外,最终只输入一些垃圾像asdf;
这让我出去。有没有一种明智的方法来取消您以交互方式输入的命令top
?
我正在尝试编写一个脚本,它将:
copy.sh
执行此任务的脚本)make
make
另一个位置复制到另一个位置。我的脚本如下所示:
#!/usr/bin/bash
BUILDSERV=me@server
BUILDDIR=/me/directory
#run my script that copies the files
./copy.sh
#TARGET is also a var in copy.sh so I make sure it's set properly here
TARGET=root@final_dest:/usr/bin/my_bin
ssh $BUILDSERV "cd $BUILDDIR && make && scp ./my_bin $TARGET"
Run Code Online (Sandbox Code Playgroud)
问题是我想作为其一部分运行的程序make
不在我的PATH
. 我.bash_profile
有一条export PATH=$PATH:/my/bin/
线,但是bash_profile
当我 ssh 进入时似乎没有被读取。
有没有办法更改我的 ssh 调用或脚本以使其读取我的 ssh 调用.bash_profile
?