How can I check if command running in screen is still running or it output with exception ?? So I can report it to user.
Im trying to execute command which is inserting data to mysql but from time to time Im getting
[PDOException]
SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction