>$O
cat "$I" | sort | uniq | while read -r u
do
uu="${u##https://www.cyberciti.biz}"
echo "~^$uu 1;" >>"${O}"
done
echo "Config file created at ${O} and now updating remote nginx config file"
scp "${O}" ${box}:/tmp/
ssh ${box} /usr/bin/lxc file push /tmp/https.www.cyberciti.biz.410.url.conf nginx-container/etc/nginx/
ssh -t ${box} /bin/bash -ic 'push_config_job'
相干材料
更多信息请输入下面敕令查看 OpenSSH 客户端 和 bash 的 man 赞助 :
$ man ssh
$ man bash
$ help type
$ help command
【编辑推荐】
- 超全的 Linux 机械的渗入渗出测试敕令备忘表
- Linux软件安装到指定目次办法
- 当你在Linux上启动一个过程时会产生什么?
- 谷歌桌面体系将大年夜 Ubuntu 迁徙到基于 Debian 的 gLinux
- 根据Dice和Linux基金会查询拜访:来看看国外开源人员近况
推荐阅读
年前最后一场技巧盛宴 | 1月27日与京东、日记易技巧大年夜咖畅聊智能化运维成长趋势! 碰到过很多同业、客户问>>>详细阅读
本文标题:通过ssh会话执行bash别名
地址:http://www.17bianji.com/lsqh/40432.html
1/2 1