bin bash Linux

Job ID: 32994133

Budget: €8 – €30 EUR

Hello,
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions about general computing hardware and software on Stack Overflow. You can edit the question so it’s on-topic for Stack Overflow or post a new one on Super User.

Closed 15 hours ago.

(Private feedback for you)

I want to check if the screen job is running, death or something to wipe it and start it automaticly new

My try:

if ! screen -list | grep -q ".bot"; then

so either he says its running, but its not runing, or he start the discordBot twice..:

1356393.bot
1356174.bot

need help in this matter.

I only need the snippset of the code

if screen death, or not runing - starting screen again. Also wipe the old one if it death or something.
Related categories: PHP Linux Shell Script UNIX Ubuntu