rm and cp return non zero values sometimes. sprintf(tmp, "rm -rf %s/* 2>/dev/null\n", dest); rc = system( tmp ); rc = 1 and errno =0
sprintf(tmp, "cp -r %s/* %s 2>/dev/null", source, dest); rc = system( tmp ); rc = -1 and errno = 2. The files exist and the paths are correct. I can do a manual copy but the application fails. If I restart the application, this works fine. Can anyone tell why this could happen? This message posted from opensolaris.org _______________________________________________ opensolaris-help mailing list [email protected]
