![]() |
|
|
Googleのunix.com
|
|||||||
| シェルプログラミングとスクリプティング KSH 、 CSH 、 shに、 bashの、はPerl 、 PHPは、削除するsed 、 Awkの、他のシェルスクリプトやシェルスクリプト言語についての質問の投稿はこちら。 |
その他のUNIXおよびLinuxフォーラムトピックは参考にすること
|
||||
| スレッド | スレッドスターター | フォーラム | 返信 | 最後の投稿 |
| ユーザのログインの問題とファイル一覧の問題。 | pernasivam | AIX | 1 | 2009年6月18日 10:09午前 |
| もう一つの問題にループ問題 | aliahsan81 | シェルプログラミングとスクリプティング | 3 | 2009年1月7日 02:02午前 |
| ハードウェアに問題を見つけることに問題 | girish.batra | Sun Solaris | 8 | 2008年9月9日 11:10午前 |
| sshのスクリプトの問題問題 | pcjandyala | シェルプログラミングとスクリプティング | 2 | 2008年7月31日 04:27午後 |
| ddコマンドの問題かもしれない問題やAFSを | 片蓋柱 | シェルプログラミングとスクリプティング | 0 | 2006年8月25日 11:10午前 |
![]() |
|
|
LinkBack | スレッドツール | このスレッドを検索 | スレッドを評価 | 表示モード |
|
|
|
|||||
|
以降に開始 2つ目のスレッド 同じ質問には(一見)のmanページを読んで、私はこのときのソリューションを提供します。 コード:
> cat pass s3cr3t > gpg --batch --no-tty --armor --passphrase-file pass --symmetric test.file > ls test.* test.file test.file.asc > file test.file.asc test.file.asc: PGP armored data message |
|
||||
|
私はあなたのソリューションを使用する方法を知っているdont 。
次は、 O /パイ時にスクリプトを実行した test.sh : 1行目: 。 /パス:アクセスが拒否されました test.sh : 2行目: s3cr3t :コマンドが見つかりません test.sh : 3行目: -バッチ:コマンドが見つかりません test.sh :行4 : 。 / test.file :アクセスが拒否されました test.sh :ライン5 : 。 / test.file :アクセスが拒否されました test.sh :行6 : test.file.asc :コマンドが見つかりません test.sh :行7 : test.file.asc : :コマンドが見つかりません |
|
|||||
|
それはおそらく私の提供のための完全なスクリプトではないが、それはどのようになる例が手動で行うという。再度コメントを投稿を明確にする: コード:
> cat pass # Run the 'cat' program to show the contents of file 'pass' which
# contains the passphrase
s3cr3t # Contents of file 'pass'
# Calling gpg in batch mode, telling it not to allocate a TTY, asking for
# ASCII-Armor output (non-binary data), providing the passphrase in file 'pass',
# symmetric enryption for file 'test.file'
> gpg --batch --no-tty --armor --passphrase-file pass --symmetric test.file
> ls test.* # Display a listing of the original & encypted file
test.file test.file.asc
> file test.file.asc # Run the 'file' utility to take a guess at the type of the
# content of file 'test.file.asc'
test.file.asc: PGP armored data message # It tells us that it's encrypted,
# armored data
やらなければいけないことがあると私はそれらを使用したファイル名を代用しています。とすぐに、その下を持っている代わりに、ファイル名の変数を使用して起動します。とするときに、その場合は、ループの実行を開始することができます。 |