3つの回答および/またはオプションの回答を持つコマンドを順番に実行するには?

3つの回答および/またはオプションの回答を持つコマンドを順番に実行するには?

実行するコマンドがあります。 3つのオプションがあり、場合によってはそのコマンドを受け取り、一部はそうではありません。"sudo ssh -L 80:localhost:80 -f -N [email protected]"

Jenkinsユーザーパスワード:

"[sudo] password for jenkins:"

次の質問に「はいまたはいいえ」と答えてください。

" The authenticity of host '10.19.34.11 (10.19.34.11)' can't be established. ECDSA key fingerprint is SHA256:96RyrUn7+VMF78YamjgCYYDwD0bzYDaMwHP4YFuQF4Q. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '10.19.34.11' (ECDSA) to the list of known hosts. ############################################################################ WARNING: This system is for the use of authorized clients only. Individuals using the computer network system without authorization, or in excess of their authorization, are subject to having all their activity on this computer network system monitored and recorded by the system personnel. To protect the computer network system from unauthorized use and to ensure the computer network systems is functioning properly, system administrators monitor this system. Anyone using this computer network system expressly consents to such monitoring and is advised that if such monitoring reveals possible conduct of criminal activity, system personnel may provide the evidence of such activity to law enforcement officers. ############################################################################ "

リモートコンピュータのパスワード:

"Password:"

場合によっては、最初、2番目、3番目のみを作成できます。場合によっては:1次および3次。他の場合は3位にとどまりました。

さまざまなオプションの入力/出力を処理するためのコマンドラインまたはシェルスクリプトを提案できますか?

ベストアンサー1

おすすめ記事