How to run 'feh' in the background of a script?

Ed plug at 0x1b.com
Tue Oct 2 15:01:28 MST 2012


On Tue, Oct 2, 2012 at 11:27 AM,  <joe at actionline.com> wrote:
>
> Thanks Matt.
>
> I like to use 'feh' rather than 'display' because 'feh -x -g' gives
> a borderless image with no title bar and with a specified image size.
>
> feh -x -g 400x400 & kwrite textfile.txt <ENTER> (this worked)
>
> Is there also a way to execute both parts so that when I quit/close
> the text file, the image also closes rather than having to close it
> separately?
>

if you want the kwrite process to be the control, you will be writing
a script that launches feh as a subprocess rather than a background
process, and then the kwrite process. That way when you exit kwrite,
the script ends and kills it's children too.


More information about the PLUG-discuss mailing list