
iSH Shell 这个 App 可以让我们在 iPhone 手机上启动一个 Alpine Linux 来模拟终端 *** 作。
只要启动了 iSH Shell ,并且通过 apk 安装了 openssh ,就可以在 iPhone 上通过 ssh *** 作远程 Linux 服务器了。
iSH Shell 官网: >shell基础五:输入和输出(echo,read,cat,管道,tee,重定向等)
(2)
cat:显示文档内容,创建文档,还能够用他来显示控制字符。
注意:在文档分页符处不会停下来;会一下显示完整个文档。因此,能够使用m
o
r
e命令或把c
a
t命令的输出通过
//command就是你在linux上执行脚本的字符串命令
StringBuffer command = new StringBuffer();
commandappend(SHELL)append(BLANK);
commandappend(CREATEUSER_SH)append(BLANK);
commandappend(fsigetFtpIp())append(BLANK);
commandappend(fsigetRootPasswd())append(BLANK);
commandappend(fsigetFixHomePath() + ftpInfogetHomePath())append(BLANK);
commandappend(ftpInfogetFtpUser())append(BLANK);
commandappend(ftpInfogetFtpPasswd())append(BLANK);
commandappend(ftpInfogetFlag());
// 进程p执行脚本
p = RuntimegetRuntime()exec(commandtoString());
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)