Google script: how can i download and execute this code?
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
But when i try to open (2), i am asked to login, and after that, it complains about permission, which i would choose to give, but then [] says that the script is blocked. How do i download this script for myself, and execute it? The execution may be in a browser (preferably), or in a phone. If the code shown in (1) is all that is needed, how do i execute it?
I have read that other solutions exist, but they might be slow. So, i want to see if this one can work, somehow.
Anything you can type in the terminal can be turned into a shell script and vice versa. The gist is to put it into a file and then set the permissions on that file so that it is executable. However, at the beginning stage, you might benefit from an overview of shell scripting.
If that tutorial does not meet your needs, level, or interest, then there are many, many others to choose from. The parts your script appear to use are functions and the find utility. Both are good to know, the latter is a very powerful utility which you will find very useful. The
This is not a shell script, it's a Google Apps script (a sort of JavaScript I guess). The page I linked describes how to run it on a Google Drive folder.
Thanks. I was looking more at the example posted in the question. I'll have to read up on Google Apps Scripts, assuming that it is not a proprietary technology.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.