Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Anyone using gsutil?

by johnfl68 (Beadle)
on Mar 10, 2013 at 07:00 UTC ( #1022650=note: print w/ replies, xml ) Need Help??


in reply to Re: Anyone using gsutil?
in thread Anyone using gsutil?

Thanks for the Capture::Tiny suggestion.

Actually, I just found a what seems to be unpublished option for GSUTIL that works for only the cp command. There is a -q switch. Why this isn't better documented, I don't know.

So, you can use this:

$cmd = "gsutil cp -q -a public-read $localfile gs://g3.mydomain.com/te +mpdirectory/$filehash.png"; system $cmd;

And you will not get output. I still am not sure if this will output warning dialog though, if there was a issue.

Unfortunately it only works with the cp (copy) and not other commands like rm.

John


Comment on Re^2: Anyone using gsutil?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022650]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-07-04 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls