I wrote a script ~/_bin/bcg to call another script that uses gimp to re-size a random image from a directory and then write it back out to another file. My (toplevel) script then uses hsetroot to set the X background to this image.
The only problems is that as soon as I call the other guy's script with exec !/_bin/aura, my script stops.
- Is there a way to call programs and scripts without exec?
- Is there a way to prevent exec from guillotine-ing my script?
If I run things without exec I get:
execvp: No such file or directory
I assume this means that bash implicitly uses some program execvp to parse each line and that program cannot find (or will not execute) ~/_bin/aura.
I can enter each line at the terminal and get what I want. I just can't put it all in a script, but that's what I want.
What can I do?
#!/bin/bash
if [ -f ~/.bcg.bmp ]
then
rm ~/.bcg.bmp
fi
~/_bin/aura "~/_wall";
hsetroot -center ~/.bcg.bmp