From d055d4a2bdfc79f4339cba934d662bc46825f141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 3 Apr 2014 12:22:53 +0200 Subject: [PATCH] exec: add examples with "tail -f" and "-kill" in /help exec --- doc/de/autogen/user/exec_commands.txt | 2 ++ doc/en/autogen/user/exec_commands.txt | 2 ++ doc/fr/autogen/user/exec_commands.txt | 2 ++ doc/it/autogen/user/exec_commands.txt | 2 ++ doc/ja/autogen/user/exec_commands.txt | 2 ++ doc/pl/autogen/user/exec_commands.txt | 2 ++ po/cs.po | 6 ++++-- po/de.po | 6 ++++-- po/es.po | 6 ++++-- po/fr.po | 12 ++++++++---- po/hu.po | 6 ++++-- po/it.po | 6 ++++-- po/ja.po | 6 ++++-- po/pl.po | 6 ++++-- po/pt_BR.po | 6 ++++-- po/ru.po | 6 ++++-- po/tr.po | 6 ++++-- po/weechat.pot | 6 ++++-- src/plugins/exec/exec-command.c | 4 +++- 19 files changed, 67 insertions(+), 27 deletions(-) diff --git a/doc/de/autogen/user/exec_commands.txt b/doc/de/autogen/user/exec_commands.txt index 2530ee198..f24e7cfe9 100644 --- a/doc/de/autogen/user/exec_commands.txt +++ b/doc/de/autogen/user/exec_commands.txt @@ -66,5 +66,7 @@ Examples: /exec -nf -noln links -dump http://weechat.org/files/doc/devel/weechat_user.en.html /exec -o uptime /exec -pipe "/print Machine uptime:" uptime + /exec -n tail -f /var/log/messages + /exec -kill 0 ---- diff --git a/doc/en/autogen/user/exec_commands.txt b/doc/en/autogen/user/exec_commands.txt index c268fb81f..17bef3ac3 100644 --- a/doc/en/autogen/user/exec_commands.txt +++ b/doc/en/autogen/user/exec_commands.txt @@ -66,5 +66,7 @@ Examples: /exec -nf -noln links -dump http://weechat.org/files/doc/devel/weechat_user.en.html /exec -o uptime /exec -pipe "/print Machine uptime:" uptime + /exec -n tail -f /var/log/messages + /exec -kill 0 ---- diff --git a/doc/fr/autogen/user/exec_commands.txt b/doc/fr/autogen/user/exec_commands.txt index f534591ba..b2efbd27f 100644 --- a/doc/fr/autogen/user/exec_commands.txt +++ b/doc/fr/autogen/user/exec_commands.txt @@ -66,5 +66,7 @@ Exemples: /exec -nf -noln links -dump http://weechat.org/files/doc/devel/weechat_user.en.html /exec -o uptime /exec -pipe "/print Uptime de la machine:" uptime + /exec -n tail -f /var/log/messages + /exec -kill 0 ---- diff --git a/doc/it/autogen/user/exec_commands.txt b/doc/it/autogen/user/exec_commands.txt index c268fb81f..17bef3ac3 100644 --- a/doc/it/autogen/user/exec_commands.txt +++ b/doc/it/autogen/user/exec_commands.txt @@ -66,5 +66,7 @@ Examples: /exec -nf -noln links -dump http://weechat.org/files/doc/devel/weechat_user.en.html /exec -o uptime /exec -pipe "/print Machine uptime:" uptime + /exec -n tail -f /var/log/messages + /exec -kill 0 ---- diff --git a/doc/ja/autogen/user/exec_commands.txt b/doc/ja/autogen/user/exec_commands.txt index 49f92b997..23231d9a9 100644 --- a/doc/ja/autogen/user/exec_commands.txt +++ b/doc/ja/autogen/user/exec_commands.txt @@ -66,5 +66,7 @@ Examples: /exec -nf -noln links -dump http://weechat.org/files/doc/devel/weechat_user.en.html /exec -o uptime /exec -pipe "/print Machine uptime:" uptime + /exec -n tail -f /var/log/messages + /exec -kill 0 ---- diff --git a/doc/pl/autogen/user/exec_commands.txt b/doc/pl/autogen/user/exec_commands.txt index c268fb81f..17bef3ac3 100644 --- a/doc/pl/autogen/user/exec_commands.txt +++ b/doc/pl/autogen/user/exec_commands.txt @@ -66,5 +66,7 @@ Examples: /exec -nf -noln links -dump http://weechat.org/files/doc/devel/weechat_user.en.html /exec -o uptime /exec -pipe "/print Machine uptime:" uptime + /exec -n tail -f /var/log/messages + /exec -kill 0 ---- diff --git a/po/cs.po b/po/cs.po index 4c58f658b..aa71b6734 100644 --- a/po/cs.po +++ b/po/cs.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-03 11:18+0200\n" +"POT-Creation-Date: 2014-04-03 12:10+0200\n" "PO-Revision-Date: 2014-03-24 14:23+0100\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -4705,7 +4705,9 @@ msgid "" " /exec -nf -noln links -dump http://weechat.org/files/doc/devel/" "weechat_user.en.html\n" " /exec -o uptime\n" -" /exec -pipe \"/print Machine uptime:\" uptime" +" /exec -pipe \"/print Machine uptime:\" uptime\n" +" /exec -n tail -f /var/log/messages\n" +" /exec -kill 0" msgstr "" msgid "ids (numbers and names) of executed commands" diff --git a/po/de.po b/po/de.po index 977febb9b..124eae7a6 100644 --- a/po/de.po +++ b/po/de.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-03 11:18+0200\n" +"POT-Creation-Date: 2014-04-03 12:10+0200\n" "PO-Revision-Date: 2014-04-02 20:17+0100\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -5426,7 +5426,9 @@ msgid "" " /exec -nf -noln links -dump http://weechat.org/files/doc/devel/" "weechat_user.en.html\n" " /exec -o uptime\n" -" /exec -pipe \"/print Machine uptime:\" uptime" +" /exec -pipe \"/print Machine uptime:\" uptime\n" +" /exec -n tail -f /var/log/messages\n" +" /exec -kill 0" msgstr "" " -list: zeigt laufende Befehle an\n" " -sh: es wird die shell um Befehle auszuführen (WARNUNG: Diese Option " diff --git a/po/es.po b/po/es.po index 046391114..3c99c4fbb 100644 --- a/po/es.po +++ b/po/es.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-03 11:18+0200\n" +"POT-Creation-Date: 2014-04-03 12:10+0200\n" "PO-Revision-Date: 2014-03-24 14:23+0100\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -4919,7 +4919,9 @@ msgid "" " /exec -nf -noln links -dump http://weechat.org/files/doc/devel/" "weechat_user.en.html\n" " /exec -o uptime\n" -" /exec -pipe \"/print Machine uptime:\" uptime" +" /exec -pipe \"/print Machine uptime:\" uptime\n" +" /exec -n tail -f /var/log/messages\n" +" /exec -kill 0" msgstr "" msgid "ids (numbers and names) of executed commands" diff --git a/po/fr.po b/po/fr.po index f0841742a..e2f21dc41 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-03 11:18+0200\n" -"PO-Revision-Date: 2014-04-03 11:19+0200\n" +"POT-Creation-Date: 2014-04-03 12:10+0200\n" +"PO-Revision-Date: 2014-04-03 12:11+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -5293,7 +5293,9 @@ msgid "" " /exec -nf -noln links -dump http://weechat.org/files/doc/devel/" "weechat_user.en.html\n" " /exec -o uptime\n" -" /exec -pipe \"/print Machine uptime:\" uptime" +" /exec -pipe \"/print Machine uptime:\" uptime\n" +" /exec -n tail -f /var/log/messages\n" +" /exec -kill 0" msgstr "" " -list: lister les commandes\n" " -sh: utiliser le shell pour exécuter la commande (ATTENTION : utilisez " @@ -5377,7 +5379,9 @@ msgstr "" " /exec -nf -noln links -dump http://weechat.org/files/doc/devel/" "weechat_user.en.html\n" " /exec -o uptime\n" -" /exec -pipe \"/print Uptime de la machine:\" uptime" +" /exec -pipe \"/print Uptime de la machine:\" uptime\n" +" /exec -n tail -f /var/log/messages\n" +" /exec -kill 0" msgid "ids (numbers and names) of executed commands" msgstr "ids (nombres et noms) des commandes exécutées" diff --git a/po/hu.po b/po/hu.po index 123d2a476..1d9136e48 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-03 11:18+0200\n" +"POT-Creation-Date: 2014-04-03 12:10+0200\n" "PO-Revision-Date: 2014-03-24 14:23+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -4293,7 +4293,9 @@ msgid "" " /exec -nf -noln links -dump http://weechat.org/files/doc/devel/" "weechat_user.en.html\n" " /exec -o uptime\n" -" /exec -pipe \"/print Machine uptime:\" uptime" +" /exec -pipe \"/print Machine uptime:\" uptime\n" +" /exec -n tail -f /var/log/messages\n" +" /exec -kill 0" msgstr "" msgid "ids (numbers and names) of executed commands" diff --git a/po/it.po b/po/it.po index efde955f3..5c12f8544 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-03 11:18+0200\n" +"POT-Creation-Date: 2014-04-03 12:10+0200\n" "PO-Revision-Date: 2014-03-24 14:23+0100\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -5058,7 +5058,9 @@ msgid "" " /exec -nf -noln links -dump http://weechat.org/files/doc/devel/" "weechat_user.en.html\n" " /exec -o uptime\n" -" /exec -pipe \"/print Machine uptime:\" uptime" +" /exec -pipe \"/print Machine uptime:\" uptime\n" +" /exec -n tail -f /var/log/messages\n" +" /exec -kill 0" msgstr "" msgid "ids (numbers and names) of executed commands" diff --git a/po/ja.po b/po/ja.po index 1ee77d81e..30af1bf82 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-03 11:18+0200\n" +"POT-Creation-Date: 2014-04-03 12:10+0200\n" "PO-Revision-Date: 2014-03-29 20:07+0900\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" @@ -5091,7 +5091,9 @@ msgid "" " /exec -nf -noln links -dump http://weechat.org/files/doc/devel/" "weechat_user.en.html\n" " /exec -o uptime\n" -" /exec -pipe \"/print Machine uptime:\" uptime" +" /exec -pipe \"/print Machine uptime:\" uptime\n" +" /exec -n tail -f /var/log/messages\n" +" /exec -kill 0" msgstr "" " -list: コマンドをリストアップ\n" " -sh: コマンドを実行する際にシェルを使う (警告: このオプションを使えるの" diff --git a/po/pl.po b/po/pl.po index 771994e50..808516a97 100644 --- a/po/pl.po +++ b/po/pl.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-03 11:18+0200\n" +"POT-Creation-Date: 2014-04-03 12:10+0200\n" "PO-Revision-Date: 2014-03-24 14:23+0100\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: weechat-dev \n" @@ -5180,7 +5180,9 @@ msgid "" " /exec -nf -noln links -dump http://weechat.org/files/doc/devel/" "weechat_user.en.html\n" " /exec -o uptime\n" -" /exec -pipe \"/print Machine uptime:\" uptime" +" /exec -pipe \"/print Machine uptime:\" uptime\n" +" /exec -n tail -f /var/log/messages\n" +" /exec -kill 0" msgstr "" msgid "ids (numbers and names) of executed commands" diff --git a/po/pt_BR.po b/po/pt_BR.po index e8b689c1d..771a74bc4 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-03 11:18+0200\n" +"POT-Creation-Date: 2014-04-03 12:10+0200\n" "PO-Revision-Date: 2014-03-24 14:23+0100\n" "Last-Translator: Sergio Durigan Junior \n" "Language-Team: weechat-dev \n" @@ -4761,7 +4761,9 @@ msgid "" " /exec -nf -noln links -dump http://weechat.org/files/doc/devel/" "weechat_user.en.html\n" " /exec -o uptime\n" -" /exec -pipe \"/print Machine uptime:\" uptime" +" /exec -pipe \"/print Machine uptime:\" uptime\n" +" /exec -n tail -f /var/log/messages\n" +" /exec -kill 0" msgstr "" msgid "ids (numbers and names) of executed commands" diff --git a/po/ru.po b/po/ru.po index bec62a791..62d6e4077 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-03 11:18+0200\n" +"POT-Creation-Date: 2014-04-03 12:10+0200\n" "PO-Revision-Date: 2014-03-24 14:23+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -4326,7 +4326,9 @@ msgid "" " /exec -nf -noln links -dump http://weechat.org/files/doc/devel/" "weechat_user.en.html\n" " /exec -o uptime\n" -" /exec -pipe \"/print Machine uptime:\" uptime" +" /exec -pipe \"/print Machine uptime:\" uptime\n" +" /exec -n tail -f /var/log/messages\n" +" /exec -kill 0" msgstr "" msgid "ids (numbers and names) of executed commands" diff --git a/po/tr.po b/po/tr.po index 42696b9d9..90b761772 100644 --- a/po/tr.po +++ b/po/tr.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-03 11:18+0200\n" +"POT-Creation-Date: 2014-04-03 12:10+0200\n" "PO-Revision-Date: 2014-03-24 14:23+0100\n" "Last-Translator: Hasan Kiran \n" "Language-Team: weechat-dev \n" @@ -3883,7 +3883,9 @@ msgid "" " /exec -nf -noln links -dump http://weechat.org/files/doc/devel/" "weechat_user.en.html\n" " /exec -o uptime\n" -" /exec -pipe \"/print Machine uptime:\" uptime" +" /exec -pipe \"/print Machine uptime:\" uptime\n" +" /exec -n tail -f /var/log/messages\n" +" /exec -kill 0" msgstr "" msgid "ids (numbers and names) of executed commands" diff --git a/po/weechat.pot b/po/weechat.pot index 021317eae..0ac09dc3d 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-04-03 11:18+0200\n" +"POT-Creation-Date: 2014-04-03 12:10+0200\n" "PO-Revision-Date: 2013-02-14 18:20+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: weechat-dev \n" @@ -3883,7 +3883,9 @@ msgid "" " /exec -nf -noln links -dump http://weechat.org/files/doc/devel/" "weechat_user.en.html\n" " /exec -o uptime\n" -" /exec -pipe \"/print Machine uptime:\" uptime" +" /exec -pipe \"/print Machine uptime:\" uptime\n" +" /exec -n tail -f /var/log/messages\n" +" /exec -kill 0" msgstr "" msgid "ids (numbers and names) of executed commands" diff --git a/src/plugins/exec/exec-command.c b/src/plugins/exec/exec-command.c index f3d7084f8..0b54c7cb1 100644 --- a/src/plugins/exec/exec-command.c +++ b/src/plugins/exec/exec-command.c @@ -873,7 +873,9 @@ exec_command_init () " /exec -nf -noln links -dump " "http://weechat.org/files/doc/devel/weechat_user.en.html\n" " /exec -o uptime\n" - " /exec -pipe \"/print Machine uptime:\" uptime"), + " /exec -pipe \"/print Machine uptime:\" uptime\n" + " /exec -n tail -f /var/log/messages\n" + " /exec -kill 0"), "-list" " || -sh|-nosh|-bg|-nobg|-stdin|-nostdin|-buffer|-l|-o|-n|-nf|" "-cl|-nocl|-sw|-nosw|-ln|-noln|-flush|-noflush|-color|-timeout|-name|"