1

sshWindows バッチ プログラムを使用してリモート サーバーに接続し、そこで実行する方法を教えてもらえます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
4

1 に答える 1

1

plinkを使用してコマンドを送信してみてください。

Usage: plink [options] [user@]host [command]
于 2012-07-27T02:15:39.073 に答える