Is there an online bash script testing site?

Sometimes I need to assist friends with bash scripting. When I’m on a Windows machine, it’s a working environment and I can’t just setup Cygwin or use a VM.

Is there some free scripting website I can use, preferably where I can use Putty to connect it or something similar?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

I believe you are looking for a “free shell account“. You should be able to sign up for one that has a description of what you are looking for.

These are typically provided with no expectation of privacy. Be careful what you store and what passwords you use.

Method 2

The #bash channel on freenode recommends ShellCheck, an online resource where you can paste your shell scripts and they will be checked for syntax errors, POSIX compliance and other straightforward errors:

ShellCheck is a static analysis and linting tool for sh/bash scripts. It’s mainly focused on handling typical beginner and intermediate level syntax errors and pitfalls where the shell just gives a cryptic error message or strange behavior, but it also reports on a few more advanced issues where corner cases can cause delayed failures.

ShellCheck is an open source project, so you can download the code and run your own instance.

Method 3

For a heavy weight solution, you can spin up an Amazon EC2 instance. The “free/trial” tier is free for the first year of your account:

http://aws.amazon.com/free/

So, in that case, you’ll have a wide choice of distros and shells to play with.

Method 4

Check out this website, you can use the CLI as well as create .sh files and run them: https://www.tutorialspoint.com/execute_bash_online.php

Method 5

If you seek something or somewhere that you can execute Linux and bash commands http://cb.vu/ seems to be a good place. This is a web based shell.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x