帮忙看看这个闹钟功能怎么出问题了
发表于 : 2013-08-11 9:34
ring(){
song="/media/data/home/videos/mv/*天璇*mp3"
cmd="mplayer -softvol-max 1000 -volume 80 -loop 0"
#echo gnome-terminal -x "$cmd" "$song " | at "$@"
echo "$cmd" "$song " | at "$@"
}
这样改bash 然后使用的时候能够 ring 07:55 设置闹钟 这个可以用 但是我想要的是
那个#号那一行 带了控制窗口就出错了 根本就没有闹钟功能 除非不要gnome-terminal
那样是可以的 为什么啊
anth@cn:~$ ring now
warning: commands will be executed using /bin/sh
job 172 at Sun Aug 11 09:33:00 2013
anth@cn:~$ atq
anth@cn:~$
song="/media/data/home/videos/mv/*天璇*mp3"
cmd="mplayer -softvol-max 1000 -volume 80 -loop 0"
#echo gnome-terminal -x "$cmd" "$song " | at "$@"
echo "$cmd" "$song " | at "$@"
}
这样改bash 然后使用的时候能够 ring 07:55 设置闹钟 这个可以用 但是我想要的是
那个#号那一行 带了控制窗口就出错了 根本就没有闹钟功能 除非不要gnome-terminal
那样是可以的 为什么啊
anth@cn:~$ ring now
warning: commands will be executed using /bin/sh
job 172 at Sun Aug 11 09:33:00 2013
anth@cn:~$ atq
anth@cn:~$