Need bash script syntax to retrieve google drive file contents with wgetWhat is wrong in the Bash script...

Why do newer 737s use two different styles of split winglets?

Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?

How to explain that I do not want to visit a country due to personal safety concern?

Did Ender ever learn that he killed Stilson and/or Bonzo?

Is there a symmetric-key algorithm which we can use for creating a signature?

Happy pi day, everyone!

Book: Young man exiled to a penal colony, helps to lead revolution

Is it insecure to send a password in a `curl` command?

How to get the n-th line after a grepped one?

Have the tides ever turned twice on any open problem?

Brexit - No Deal Rejection

How to make healing in an exploration game interesting

Most cost effective thermostat setting: consistent temperature vs. lowest temperature possible

Four married couples attend a party. Each person shakes hands with every other person, except their own spouse, exactly once. How many handshakes?

Bach's Toccata and Fugue in D minor breaks the "no parallel octaves" rule?

What is a ^ b and (a & b) << 1?

Encrypting then Base64 Encoding

Knife as defense against stray dogs

Non-trivial topology where only open sets are closed

Is honey really a supersaturated solution? Does heating to un-crystalize redissolve it or melt it?

How do I hide Chekhov's Gun?

Is it normal that my co-workers at a fitness company criticize my food choices?

Does .bashrc contain syntax errors?

Professor being mistaken for a grad student



Need bash script syntax to retrieve google drive file contents with wget


What is wrong in the Bash script about parameters and Wget?Variable parsing with Bash and wgetBash script fails with “syntax error in conditional expression”Spawning multiple parallel wgets and storing results in a bash array to be pretty printed when all wgets are doneBash script not waiting for wget to finish downloadWget Bash Script File Not FoundBASH script syntax check, track execution?wget script exit abnormally with error 126Wget loop bash with download numbering?How to return a timestamp with wget -N on a google docs













0















I'd like to use wget to retrieve the contents of a google drive file using a bash script on raspbian. My efforts so far with wget download some html that opens a basic google page telling me how to use google drive for file storage. The command I'm using is:



wget -ncS https://drive.google.com/open?id=1nfId2iKvpaQLI5zSDQEXuTrrTt4qNz4qrHL4jFum3OM


The file itself is tiny for testing, just 10 characters in it.



I may be misunderstanding what wget does as I've never used it before and am not getting what I hope to get when playing with it (the file contents).



Where am I going wrong? What is the syntax to retrieve my file?









share



























    0















    I'd like to use wget to retrieve the contents of a google drive file using a bash script on raspbian. My efforts so far with wget download some html that opens a basic google page telling me how to use google drive for file storage. The command I'm using is:



    wget -ncS https://drive.google.com/open?id=1nfId2iKvpaQLI5zSDQEXuTrrTt4qNz4qrHL4jFum3OM


    The file itself is tiny for testing, just 10 characters in it.



    I may be misunderstanding what wget does as I've never used it before and am not getting what I hope to get when playing with it (the file contents).



    Where am I going wrong? What is the syntax to retrieve my file?









    share

























      0












      0








      0








      I'd like to use wget to retrieve the contents of a google drive file using a bash script on raspbian. My efforts so far with wget download some html that opens a basic google page telling me how to use google drive for file storage. The command I'm using is:



      wget -ncS https://drive.google.com/open?id=1nfId2iKvpaQLI5zSDQEXuTrrTt4qNz4qrHL4jFum3OM


      The file itself is tiny for testing, just 10 characters in it.



      I may be misunderstanding what wget does as I've never used it before and am not getting what I hope to get when playing with it (the file contents).



      Where am I going wrong? What is the syntax to retrieve my file?









      share














      I'd like to use wget to retrieve the contents of a google drive file using a bash script on raspbian. My efforts so far with wget download some html that opens a basic google page telling me how to use google drive for file storage. The command I'm using is:



      wget -ncS https://drive.google.com/open?id=1nfId2iKvpaQLI5zSDQEXuTrrTt4qNz4qrHL4jFum3OM


      The file itself is tiny for testing, just 10 characters in it.



      I may be misunderstanding what wget does as I've never used it before and am not getting what I hope to get when playing with it (the file contents).



      Where am I going wrong? What is the syntax to retrieve my file?







      linux bash wget





      share












      share










      share



      share










      asked 3 mins ago









      Dave FDave F

      1316




      1316






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1414717%2fneed-bash-script-syntax-to-retrieve-google-drive-file-contents-with-wget%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1414717%2fneed-bash-script-syntax-to-retrieve-google-drive-file-contents-with-wget%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...