#!/bin/bash # bash - we use %1 # see also ad1810-tachod # joostvb@incagijs:~% xmessage Locked by $USER@`hostname`. Please give password. & ; xtrlock # gnome-terminal -e foo # xterm -font foo-*-bar-* oid if test -f ~/.a1-lock/img/* then feh -FZ ~/.a1-lock/img/* & else xterm -fullscreen -e a1-prompt & fi xtrlock # this kill works fine on Debian GNU/Linux 8.4 (jessie) # with /bin/sh -> /bin/bash (incagijs) # and fails on Debian GNU/Linux 9.0 (stretch) # with /bin/sh -> dash and feh 2.18-1 ## kill %1 # this kill works fine on Debian GNU/Linux 9.0 (stretch), # feh 2.18-1 (banach) kill -KILL %1 # However, this: # joostvb@banach:/srv...jes/2016/20160313/slides% feh ./slide_IMG_1439.JPG & # [1] 4031 # joostvb@banach:/srv...jes/2016/20160313/slides% kill %1 # gives: # [1] + exit 143 feh ./slide_IMG_1439.JPG # !?!?!