ssh
Windows バッチ プログラムを使用してリモート サーバーに接続し、そこで実行する方法を教えてもらえますshell scripts
か?
簡単なサンプル例は、これを始めるのに適しています。
サーバー名:-ares-ingest.vip.host.com
ユーザー名:- uname
パスワード:- password
私はWindows Batch Programを初めて使用するため、提案をいただければ幸いです
アップデート:-
plink
ローカル マシンにあるシェル スクリプトを実行しようとしましたが、常に次のようなエラーが表示されます。
C:\PLINK>plink uname@cli.host.com -m email.sh
Using keyboard-interactive authentication.
Password:
Using keyboard-interactive authentication.
Your Kerberos password will expire in 73 days.
sh: HIVE_OPTS= -hiveconf mapred.job.queue.name=hdmi-technology: is not an identifier
以下は私のシェルスクリプトの内容です-
#!/bin/bash
export HIVE_OPTS="$HIVE_OPTS -hiveconf mapred.job.queue.name=hdmi-technology"
hive -S -e 'SELECT count(*) from testingtable2' > attachment.txt