site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com In message <75D481373A76D311A5790090274F2B5C09289B39@mailsrv1.gemstone.com>,Nor m Green writes:
int rc = system("date >/usr/tmp/tmp.kPCvVa");
If fails with rc == 256 and errno == 0 and prints this to stderr:
sh: line 1: 1: Bad file descriptor
I know the path is OK because the file /usr/tmp/tmp.kPCvVa *IS* created, but it has a size of zero.
the shell handles the redirection and creates the output file so its not really an indicator that your path is ok. its a bad idea to just call 'date' and not give the full path since some user program called date (and someone somwhere has probably done this) would interfere with proper behavior. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
chas williams - CONTRACTOR