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