Adt
Adt

Reputation: 333

can we execute shell script using gsutil command

Option to execute shell script using gsutil is nowhere mentioned in the document. Tried some options but still no luck.I have a .sh file ,stored in a storage bucket,is there any way to execute this script using gsutil ?

Upvotes: 2

Views: 4383

Answers (1)

Travis Hobrla
Travis Hobrla

Reputation: 5509

gsutil doesn't support direct execution shell scripts, but you could pipe it to a shell, for example:

gsutil cat gs://your-bucket/your-script.sh | sh

Upvotes: 3

Related Questions