Should I be escaping the %Z ? its part of the linux command. I tried that and get errors too.
As it stands ... the two lines above return this:
sqlcache.cc:49:19: warning: character constant too long for its type
sqlcache.cc: In function ‘int main(int, char**)’:
sqlcache.cc:49: error: invalid conversion from ‘int’ to ‘const char*’
sqlcache.cc:49: error: initializing argument 2 of ‘int sprintf(char*, const char*, ...)’
sqlcache.cc:49: warning: format not a string literal and no format arguments
sqlcache.cc:50: error: invalid operands of types ‘char*’ and ‘const char [4]’ to binary ‘operator+’
Thank you PanGalactic. Ill try this as soon as I get home. Also thank you QWERTYman. Knowing what is evil will keep me from making really huge mistakes!