Ubuntu 如何批量运行几个ssh命令?

Ubuntu 如何批量运行几个ssh命令?,ubuntu,ssh,Ubuntu,Ssh,我想一个接一个地批量运行几个命令。 但批处理在“killall firefox”之后停止,错误为“firefox未找到任何进程” 我需要做的是: 1.杀死firefox 2.清除内存 3.删除firefox配置文件 4.下载我的新个人资料 5.安装解压并解压配置文件 6.安装xrdp 7.运行firefox 我的批次: killall firefox && sync su echo 3 > /proc/sys/vm/drop_caches && rm -r

我想一个接一个地批量运行几个命令。 但批处理在“killall firefox”之后停止,错误为“firefox未找到任何进程”

我需要做的是:

1.杀死firefox

2.清除内存

3.删除firefox配置文件

4.下载我的新个人资料

5.安装解压并解压配置文件

6.安装xrdp

7.运行firefox

我的批次:

killall firefox && sync su echo 3 > /proc/sys/vm/drop_caches && rm -r -f /root/.mozilla/ && wget -P /root/.mozilla/ https://www.dropbox.com/s/***/firefox.zip && sudo apt-get install unzip && unzip /root/.mozilla/firefox.zip -d /root/.mozilla/ && sudo apt-get install xrdp && firefox

如果要在出现错误后继续处理命令,请使用分隔命令;而不是&