I doubt the local wildlife will let us do that with cucumbers
Rabbits hide out under our deck sometimes, I have a photo of a groundhog casually strolling across our deck, and deer come through nightly... I suspect that cucumbers would be gone quickly...
So far we have only attempted potatoes outside the fenced in area...wildlife seems to ignore them.
