I was using gsutil rm from php exec function:exec("gsutil rm gs://bucketname/filename*",$op,$return);I got return as non zero for the operation (since i used filename*), but gsutil continued to remove even after coming out of exec.It should stop executing after giving return value.Is some kind of multithreading responsible for this?How reliable it gsutil exit code for operations it performs?for e.g it gave non-zero for task it completed successfully.how can I ensure gsutil return value is final full stop of all operation?Please help,Thanks--
You received this message because you are subscribed to the Google Groups "Google Cloud Storage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gs-discussio...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Sachin,gsutil should return non-zero exit status if a failure occurs, and should stop at the first failure unless you use the gsutil rm -f option (which tells gsutil to continue despite errors).gsutil doesn't run multi-threaded unless you specify gsutil -m, which wasn't the case in the command you showed in your email.What version of gsutil are you using? (Please run 'gsutil ver' to find out.)Finally, can you please provide a concrete example of the problem - the exact command you ran (including actual bucket/object name wildcard), and the output showing it continuing to run after it encountered a failure? If you'd prefer not to post actual paths on the public discussion forum please send this info to gs-...@google.com.