Scripting for all platform ?

GoodBetterBest

Supremacy Member
Joined
Jan 23, 2019
Messages
6,239
Reaction score
2,119
What is a scripting language that runs on all platforms ( or at least Win, Mac, Unix ) without users having to install any software.
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
What is a scripting language that runs on all platforms ( or at least Win, Mac, Unix ) without users having to install any software.

mac & unix will be BASH or other shell script.
There is no one scripting language that by default is available in all platforms.

Windows native is power shell.

Otherwise you are free to install any scripting language you like as long as they are found in all platforms.

I am thinking in a standalone scripting language when I answered the above.
Actually there is one scripting language which is commonly available in all platforms. It is called Javascript. Since nowadays browser is like a ubiquitous application readily found in nearly all modern desktop platforms and all modern browsers anre equipped with the Javascript engine. However it is possible to not have a browser in an unix system since unix system can be a minimalist installation that doesn’t have any GUI or the need for a browser to exist.

:)
 
Last edited:

GoodBetterBest

Supremacy Member
Joined
Jan 23, 2019
Messages
6,239
Reaction score
2,119
mac & unix will be BASH or other shell script.
There is no one scripting language that by default is available in all platforms.

Windows native is power shell.

Otherwise you are free to install any scripting language you like as long as they are found in all platforms.

I am thinking in a standalone scripting language when I answered the above.
Actually there is one scripting language which is commonly available in all platforms. It is called Javascript. Since nowadays browser is like a ubiquitous application readily found in nearly all modern desktop platforms and all modern browsers anre equipped with the Javascript engine. However it is possible to not have a browser in an unix system since unix system can be a minimalist installation that doesn’t have any GUI or the need for a browser to exist.

:)

Thanks. I thought of Javascript also but if I were to write some system utilities not running on a browser, eg a very simple utility to get some inputs string, process it and return it or read/write a file, then I would need nodejs installed, right ? So that's no go. Looks like there isn't one language that I can use.
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
Thanks. I thought of Javascript also but if I were to write some system utilities not running on a browser, eg a very simple utility to get some inputs string, process it and return it or read/write a file, then I would need nodejs installed, right ? So that's no go. Looks like there isn't one language that I can use.
Why do you need to install an application just to run a script ?
How do you get the script into the system in the first place ?
If you could get a script into the system, why can't you also get the scripting engine into the system at the same time ?
Your deployment package could have all the various scripting engine different executables that is suitable for various different
platforms. Depending on which platform it is suppose to work on, your script could be started using run.bat, or run.sh which would start up the right script engine executable and pass your own script to the engine for execution.

You don't need to install an application to execute it.
You just need to plan out how you are deploying.

You should be concern with your deployment process, not which programming language to choose.
Of course, you can choose one or more programming languages you are familiar with.

https://developer.chrome.com/articles/file-system-access/https://www.electronjs.org/docs/latest/tutorial/application-distribution
You should also consider what does this application requires.
Is it necessary to run on client systems ?
Does some of the functionality can be run on a remote server ?

:)
 

GoodBetterBest

Supremacy Member
Joined
Jan 23, 2019
Messages
6,239
Reaction score
2,119
Why do you need to install an application just to run a script ?
How do you get the script into the system in the first place ?
If you could get a script into the system, why can't you also get the scripting engine into the system at the same time ?
Your deployment package could have all the various scripting engine different executables that is suitable for various different
platforms. Depending on which platform it is suppose to work on, your script could be started using run.bat, or run.sh which would start up the right script engine executable and pass your own script to the engine for execution.

You don't need to install an application to execute it.
You just need to plan out how you are deploying.

You should be concern with your deployment process, not which programming language to choose.
Of course, you can choose one or more programming languages you are familiar with.

https://developer.chrome.com/articles/file-system-access/https://www.electronjs.org/docs/latest/tutorial/application-distribution
You should also consider what does this application requires.
Is it necessary to run on client systems ?
Does some of the functionality can be run on a remote server ?

:)

Thought of just send a script to different users and let then run it without having to ask them to install any additional software.

eg. if all systems have python inbuilt, then I can send them a *.py with commandline instruction to execute the script.
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
Thought of just send a script to different users and let then run it without having to ask them to install any additional software.

eg. if all systems have python inbuilt, then I can send them a *.py with commandline instruction to execute the script.

Why don’t you just send them an executable with the engine and script combined?

To them, whether it is an executable or a script wouldn’t make a lot of difference.

https://dev.to/luckynkosi/the-final-step-how-to-package-a-node-js-application-4hol
:)
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top