View Single Post
Old 01-02-2011, 12:55 AM   #1
mcqueary
eBook Junkie
mcqueary began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2011
Location: Aurora, CO
Device: Kindle, iPad
calibredb exit codes?

Hi folks!

I'm writing a shell script for some custom imports and it seems like calibredb always returns 0 (success) when I (e.g.) try to add a file that doesn't exist. Is this known behavior? Or does it only return >0 in specific situations?

example:

$ calibredb add /path/to/nonexistent/file.epub
/path/to/nonexistent/file.epub not found
Backing up metadata
Notifying calibre of the change
$ echo $?
0

Thanks!
mcqueary is offline   Reply With Quote