How to start a process when it stops
I have a process running, but every few minutes it stops. Is there some way to make it start again automatically when it stops. Maybe by running it in the background? I have the process ID.
|
Quote:
Tux, |
You need to supply more information. What process is it that stops? Why is it stopping? Are there error messages? Have you looked in the logs for any insight to the problem?
|
crontab can be set to check if an application is running at a set time, but as previous posts stated .. more info needed :)
|
The program was made by my friend as a "game" for me. It's a word processor and he wants me to keep it from stopping or restart it immeditaly after it stops. I was hoping I could do the latter. The PID I know because when I ran it, I also used the "ps -A" command and found it running, on the process list it's called "Gwerd". That's about as much as I can tell you.
|
you can try doing something like this:
Code:
#!/bin/bash do Code:
chmod +x autorun.sh run the script with bg autorun.sh |
Yay! It worked. Thanks for your help.
|
All times are GMT -5. The time now is 06:45 AM. |