python - How to automate tasks in OSX/Windows and Android -


hey guys sorry noob here, have been trying more productive , have been trying search web ways automate tasks on mac, windows , android machines. far have been forced believe on : mac : applescript can used write scripts (shell scrpits?) on mac automate tasks in terminal setting , environment compile code. using automator launch shell scripts windows : writing scripts in python automate tasks. android : same windows. using "tasker" run code app.

my main doubts : 1) shell script run on windows? 2) if not sort of scripts run on windows? 3) can python used write shell scripts? 4) can applscript used write shell scripts? 5) can javascripts used write shell scripts? 6) can shell scripts used perform intended tasks(lol noob strikes). 7) bash scripts , how different shell scripts? 8) can bash scripts used on osx , windows perform intended tasks? 9) learn create scripts?

let's terms defined. unfortunately words "shell" , "script" vague, , of course have no idea got these from.

a shell program can run another. windows explorer shell, bash runs on flavours of unix/linux/os x. however, people include ability run command line interpreter (cli), cmd.exe on windows , bash on unixs.

a script program run text file without separate compilation phase. compiler converts source code machine readable format. scripting languages compiler built-in , invisible user.

shells have 2 features, cli , language. these 2 conflict, , speaking generally, languages don't have cli component (perl, python, ruby) better @ writing large , complex programs. shells fine relatively simple stuff.

1) shell script run on windows? depends on mean "shell script", yes. there 2 command-line interpreters out-of-the-box on windows, cmd.exe , powershell. neither compatible other operating systems.

2) if not sort of scripts run on windows? "script" instead of "shell script". python, perl, ruby, run on windows happily, have install them.

3) can python used write shell scripts? 4) can applscript used write shell scripts? yes - why using word "shell"

5) can javascripts used write shell scripts? in theory, yes, not designed that, , not best tool.

6) can shell scripts used perform intended tasks(lol noob strikes). come on! intended tasks? don't try write application in shell script. however, languages perl, python, ruby different matter, no 1 call shells (although strictly speaking can be).

7) bash scripts , how different shell scripts? bash scripts programs use bash (bourne-again shell) program. these shell scripts. there several flavours of shell, bash popular.

8) can bash scripts used on osx , windows perform intended tasks? bash runs under cygwin on windows, kind of emulation environment. bash on os x native. don't know intended tasks are, impossible say.

9) learn create scripts? type on command-line can go shell script, text file created editor.

languages python, perl, , ruby have extensive documentation , tutorials.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -