If you make the following script (testusr.fish): --------------------------------------------------------- function testusr --on-event USR1 echo Got the signal end while true sleep 1 end ---------------------------------------------------------
then run it as command fish testusr.fish & kill -USR1 %1 do you see anything? regards, Maxim On Mon, 27 Aug 2012 15:01:37 +0400, Лев Долгов <lev.dol...@gmail.com> wrote: > I have a following script that changes a wallpaper every 15 minutes under > xfce: http://pastie.org/4596618. I wish to make it possible to interrupt > the usual 15-minute delay and change the wallpaper at once if the script > is > signalled SIGUSR1. I find the corresponding PID and send the signal: > >> ps ax|grep change > 11437 pts/0 S 0:00 /usr/bin/fish /opt/myscripts/change-wallpaper2 > 13580 pts/2 S+ 0:00 grep change >> kill -USR1 11437 > > but nothing happens. Am I doing something wrong? ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users