Capture exit state in batch mode

Other questions, messages

Moderator: feffer

Post Reply
Posts: 2
Joined: Sun Apr 17, 2005 9:50 am

Capture exit state in batch mode

Post by markauk » Sun Apr 17, 2005 10:06 am

I'm creating a script to do some automated backup/restore of partitions. I don't want there to be any user intervention required, but want to make sure that the script is aware if and partimage operation ends with an error.

Does partimage exit with error codes and if so what are then and how would I access them in a shell script?



Post Reply