0

我写了一个脚本:

#! /bin/bash

terminator -x sh -c "expect -c 'spawn su - ;expect Password:;send "your-password\n";interact';df -h;bash "

-->这将使用root登录打开终结者的终端,我需要在脚本中进行哪些更改,以便其他命令(例如.df -h)可以在root登录后在终结者的终端中执行。

4

0 回答 0