Quote:
Originally Posted by Cobozco
@lleb, I put the bash file in init.d with the other .sh files and it was unsuccessful
@bigrigdriver, I moved the files over and now it runs, but it runs in the background...
Anyway to bring up a terminal screen when the file begins and continues to run?
|
As a rule ini.d scripts will only run on boot
udev might be more suited to your needs
http://wiki.debian.org/udev
you should find some good examples here
https://startpage.com/do/search?cmd=...cript+on+event
as for the terminal issue, depends on the terminal
using xterm as an example,
Code:
RUN+="xterm -hold -e /path/to/script.sh
-hold prevents xterm from closing when your script completes
-e <command> execute command