I have this script:#!/bin/shcd ~/.devilspie && devilspie Minimize.dspkill devilspieexit 0The first command runs absolutely fine, but in the second line where it needs to kill the process, it doesn't do so. If I run the command in terminal it works as intended but not in the script. Is there anything wrong with the script. I am a complete novice so please help!
Unable to kill a process in shell script
shell script;devilspie