ZKX's LAB

shell脚本输入命令 Linux shell脚本如何自动运行程序并输入命令

2021-03-24知识3

Linux shell脚本如何自动运行程序并输入命令 我想在linux平台上自动运行某一个App(与windows平台上功能一样)。这个App打开后要输入一些自定义的参数,如i,就是登陆某。

在Shell脚本中输入下面的命令,并运行: cat report_dir#。bin/bash old_dir=$(pwd)echo\"Current working directory:$old_dir\"cd echo\"New working directory:$(pwd)\"echo\"Last working directory:$old_dir\"echo。

编写一个shell脚本程序,从命令行输入10个数 bin/bashall=$if[$#-ne 10];thenecho error|tee-a/tmp/errexit 1fisum=1for i in$alldoif[$i-le 0];thenecho error|tee-a/tmp/errexit 1elsesum=`expr$sum \\*i`fidoneecho$sum

shell脚本输入命令 Linux shell脚本如何自动运行程序并输入命令

#shell脚本输入命令

随机阅读

qrcode
访问手机版