Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
shellのアラートあれこれ
Search
Kenichiro MATOHARA
December 09, 2017
Technology
91
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
shellのアラートあれこれ
Kenichiro MATOHARA
December 09, 2017
More Decks by Kenichiro MATOHARA
See All by Kenichiro MATOHARA
Debian trixie Gnome環境で時計がずれている?
matoken
0
14
200kbps使い放題のロケットモバイル神プランを試し中
matoken
0
20
ファイル共有ソフトウェアのOpenCloud 8.0.0を試す
matoken
0
16
ターミナルグラフィックウェブブラウザ!?
matoken
0
57
軽量ウェブブラウザDilloのPlugin
matoken
0
57
今更LLMを触り始める(ローカルLLM bonsai)
matoken
0
230
念願のNDLOCR-Lite を試す
matoken
0
140
Nextcloud と互換性のある軽量WebDAV server のKaraDAV を試す
matoken
0
150
ActivityPub Server の snac その3
matoken
0
96
Other Decks in Technology
See All in Technology
エンタメ企業のM&Aを支えるデータ基盤 ― 統合から店舗のリアルタイム分析まで / Data Engineering Summit 2026
genda
0
180
10年後、Engineering 行為を剥奪されるとして、わたしたちは、どう、何を創ればいいだろうか。 / If Engineering Is Taken Away in 10 Years, How and What Should We Create?
bitkey
PRO
1
190
JAWSUG TOHOKU 青森支部 「LoGoチャット」のAWS移行で 乗り越えたこと
taketakekaho
0
330
スキマバイトという雇用形態は存在しないので、雇用期間1日のアルバイト契約を事業者とワーカーが結ぶ手続きを支えるのがタイミーなんです
akitoshiga
0
200
分析AIエージェントを育てる、動く環境を育てる
codatum
1
1.1k
パッチ更新でterraform initが落ちた日
grimoh
1
140
継続的なAIコスト最適化
bgpat
1
340
Kiro Crewをはじめよう
kizawa2020
1
160
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
1
190
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
150
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
220
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
190
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
500
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
410
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
480
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
940
How to train your dragon (web standard)
notwaldorf
96
6.9k
The untapped power of vector embeddings
frankvandijk
2
1.9k
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Navigating Team Friction
lara
192
16k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
540
Transcript
None
matoken? KenichiroMATOHARA( @matoken ) http://matoken.org 興味 PC-UNIX/OSS, OpenStreetMap, 電⼦⼯作, ⾃転⾞……
altanativeが好き,多様性は正義!
⼤隅から来ました
最近 ⾃宅⽤にAPを購⼊ BAFFALO WZR-HP-AG H ハードオフ⿅屋店にて本体のみのジャンク218円 よくあるセンターポジティブの12V A . mmで動いた
. GHz bgn Mb → . + GHz abgn Mbに! KRACKsとかの対応は多分出ないくらいの古さ OpenWrtとかLEDEとかいけるぽい
shellで時間の掛かる処 理が終わったら教えて欲 しい shell bell 同じホストの別端末に通知 eject! desktop通知 他の端末に通知 いろんなもので通知
bell 昔から使われていて多分⼀番オーソドックスな⽅法 処理の後ろに付けて終わったらbellが鳴る readlineの機能 ※^GはC-v C-gで⼊⼒ $ 時間の掛かる処理 ; echo
-en "\007" $ 時間の掛かる処理 ; echo -en ^G $ 時間の掛かる処理 ; echo -en "\a"
鳴らない時(inpurcの bell-style) set bell-style none になっているかも /etc/inputrc, ~/.inputrc で設定 set
bell-style audible(音を鳴らす) set bell-style visible(画面を点滅させる)
鳴らない時(端末設定) 端末で無効になっているかも
鳴らない時(スピーカー が無効) /etc/modprobe.d/blacklist.conf に⼊っていることが lsmod |grep pcspkr で確認 無かったら sudo
modprobe pcspkr とかして確認 当たりならblacklistから消したりする
同じホストの別端末に通 知 鳴らしたい端末デバイスに投げる 端末デバイス名は該当端末で tty コマンドで確認できる $ tty /dev/pts/7 $
echo -en ^G > /dev/pts/7 $ echo -en Done.^G^H^H^H^H^H > /dev/pts/7
適当な効果⾳を鳴らす 適当なプレイヤーで好きな⾳を鳴らす aplay hoge.wav 何なら動画とかでも
CDドライブを開閉する ウィーン! $ while true ; do eject -T;sleep 1;
done $ while true ; do eject -T;sleep 1; done Ejectコマンドユーザー会
デスクトップ通知 notify-sendとかgol(Glowl for Linux)とかを使う $ notify-send -t 0 Done.
他の端末に通知(スマホ とか別マシンとか) IFTTTのWebhook利⽤ IFTTTでWebhook発の適当なレシピを作って以下のようなscriptを⽤意して呼ぶ #!/bin/sh if [ $1 ]; then
msg=$1 else msg="Done." fi curl -X POST -H "Content-Type: application/json" -d "{\"value1\":\"$msg\"}" https://maker.ifttt.com/trigger/shell_alart/with/key/{{token}} > /dev/null 2>&1
pushbulletに投げた時
IFTTT いろんなサービスと連携できるので⾊んな所に通知を遅れる SMS / eMail / スマートスピーカー…… Philips Hueで部屋の電気の⾊変えたり(エラー時は⾚にしたり?),テレビ消したり…… (IFTTTが乗っ取られたら他のサービスもやられるので注意)
https://ifttt.com/search/services
余録
処理を⾛らせてからやっぱり終了時に教えて欲し いなと⾔う時(きっともっといい⽅法ある) 中断したり別端末からPID確認してループを回す $ sleep 100 ^Z [1]+ 停止 sleep
100 bg [1]+ sleep 100 & $ ps PID TTY TIME CMD 13118 pts/7 00:00:00 bash 16758 pts/7 00:00:00 sleep 16761 pts/7 00:00:00 ps $ while ps 16758 ; do sleep 5; done; echo "done^G" PID TTY STAT TIME COMMAND 16758 pts/7 S 0:00 sleep 100 PID TTY STAT TIME COMMAND 16758 pts/7 S 0:00 sleep 100 [1]+ 終了 sleep 100 PID TTY STAT TIME COMMAND done
終了コードで処理を変える 正常時にはbell 回エラー時には2回 $ 処理 && echo ^G || (echo
^G;sleep 1;echo ^G)
その他 tput bel TTS(OpenJTalk / rospeex / gsay は死んだぽい)
発表後 TTSはMiniDebConfJapan で発表のあった徵⾳梅林も使えるのでは?
license等 Copyright: Kenichiro MATOHARA <
[email protected]
> License : https://creativecommons.org/licenses/by-nc-sa/ . /(CC
BY-NC-SA 4.0) source : https://bitbucket.org/matoken/kagolug- . /src - - (Sat) ⿅児島Linux勉強会 2017.12にて発表