[Solved] restart function doesn't work
#4
@LogicParrot just as I am reviewing my mind, you should be able to use exit codes. Like restart if exit code is non-zero (eg at interruptions through sigkill or sigsegv) but that wouldn't include a standard stop and therefore the restart. But has this anything to do with the line "couldn't notify input thread, hanging up or killing?" (not exactly sure about the second part part)

Anyway, in bash scripting the exit code of the last command is $? So you can check with test -n (AFAIK, not tested). See man test
Reply
Thanks given by:


Messages In This Thread
[Solved] restart function doesn't work - by xelor - 05-03-2016, 01:49 AM
RE: restart function dont works - by LogicParrot - 05-03-2016, 04:24 AM
RE: restart function doesn't work - by xelor - 05-03-2016, 07:19 AM
RE: restart function doesn't work - by Schwertspize - 05-03-2016, 06:12 AM



Users browsing this thread: 1 Guest(s)