Hi! I've got a shell script that downloads and displays a sunmap as the background every 60 seconds. The program reverts the background to the original when it ends by using a trap statement - everything works fine apart from when the script is ended by a computer shutdown, in which case the background is not reverted. This is part of a small Launchpad project and this issue is putting on hold a merge, so any help would be greatly appreciated.
View File - Download File - View Bug
Thanks!
SOLVED
Turns out trap doesn't work with loops, use the wait statement to fix this.
Bookmarks