2010-10-20
at コマンドで GUI を起動させたり、処理結果を標準出力で得たり
とりあえずのメモ
詳細はあとで調べたい。
環境は Ubuntu 10.04
% at -V at version 3.1.11 Please report bugs to the Debian bug tracking system (http://bugs.debian.org/) or contact the maintainers (at@packages.debian.org).
1分後に Firefox を起動させる
% echo 'DISPLAY=:0.0 firefox' | at now+1minutes
1分後、ターミナル上に hogehoge と表示する
あらかじめ tty コマンドで出力させたいターミナルのデバイス名を調べておくこと
% echo 'echo \\'hogehoge\\' > /dev/pts/0' | at now+1minutes
トラックバック - http://d.hatena.ne.jp/ino46/20101020/1287537566
リンク元
- 136 http://pipes.yahoo.com/pipes/pipe.info?_id=tDfBdGWF3RGl9XNm1L3fcQ
- 34 http://pipes.yahoo.com/pipes/pipe.info?_id=12e453e301454b799b3ac6642aa089b5
- 7 http://www.google.co.jp/url?sa=t&rct=j&q=ATコマンド+結果&source=web&cd=1&ved=0CCkQFjAA&url=http://d.hatena.ne.jp/ino46/20101020/1287537566&ei=ZcTdTreUHuqOmQW14aWcBQ&usg=AFQjCNGLybIpiD1wICiEd1a3Uo8cmgzN
- 6 http://www.google.co.jp/search?q=at+コマンド 出力&btnG=検索&hl=ja&client=firefox-a&hs=Sz3&rls=org.mozilla:ja:official&sa=2
- 5 http://www.google.co.jp/url?sa=t&rct=j&q=at コマンド 出力&source=web&cd=2&ved=0CC8QFjAB&url=http://d.hatena.ne.jp/ino46/20101020/1287537566&ei=h0bCTsx8iNaYBf29zKAG&usg=AFQjCNGLybIpiD1wICiEd1a
- 4 http://www.google.co.jp/search?hl=ja&source=hp&biw=1024&bih=584&q=at+コマンド 標準出力&aq=f&aqi=&aql=&oq=&gs_rfai=
- 4 http://www.google.co.jp/search?q=atコマンド+gui&rls=com.microsoft:ja:IE-SearchBox&ie=UTF-8&oe=UTF-8&sourceid=ie7&rlz=1I7SKPB_ja&redir_esc=&ei=ytMATaG6I4rrrQfU6YSRDw
- 4 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDQQFjAA&url=http://d.hatena.ne.jp/ino46/20101020/1287537566&ei=DxkvT_PsOY-XmQXbp7D8Dw&usg=AFQjCNGLybIpiD1wICiEd1a3Uo8cmgzNJg&sig2=D9BPxnNUy-iRgBX0ji_y9Q
- 3 http://search.yahoo.co.jp/search?p=at+コマンド+グラフィカル&aq=-1&oq=&ei=UTF-8&fr=top_ga1_sa&x=wrt
- 3 http://www.google.co.jp/search?q=ubuntu+atコマンド&btnG=検索&hl=ja&safe=off&biw=908&bih=838&sa=2