Seashells – Pipe Your Linux Command’s Output To Web In Real-time
Important – Read before before using it
- Seashells is currently in beta stage. Please don’t use it for any uptime-critical applications.
- It is not a data storage medium. All old sessions (links) will be deleted after a day.
- Seashells doesn’t have any account system yet, so each IP address is limited to 5 concurrent sessions.
Using Seashells.io
Like I already said, you don’t have to install anything to use Seashells web service. Just pipe your Linux command’s output to “nc seashells.io 1337” as shown below. As you might already know, nc(netcat) comes pre-installed in most Linux operating systems.
Say for example, I am going to pipe the output of ‘echo’ command as shown below.
Sample output would be:
Now, your command’s output using the above URL on any web browser.
Cool, isn’t it? It’s just an example. You can pipe the output of any Linux command or program that takes a long time to complete.
Install Seashells Client
If you use Seashells often, it is recommended to install the Seashells client.
Seashells client is written using Python. So, it can be easily installed using pip utility. To install pip in your Linux distribution, do the following steps.
To install PIP on Arch Linux and its derivatives, run:
On RHEL, Fedora, CentOS:
Or,
On Debian, Ubuntu, Linux Mint:
Once PIP installed, run the following command to install ‘Seashells’.
Using Seashells Client
Once you have the client installed, you don’t have to pipe the output to “nc seashells.io 1337”. Instead, you can directly pipe the output to seashells. The client has some additional features, such as showing output on stdout as well as forwarding to Seashells.
Now, let me pipe the ls command’s output:
Sample output from my system:
Now, your friend can view the above command’s output using URL: https://seashells.io/v/Jba3TUv2.
If you want to display the output in plain text, replace, replace the /v/{url} (for view) with /p/{url} (p for plain text). For example, we can pipe the above command’s output as plain text using URL – https://seashells.io/p/Jba3TUv2.
Please note that I have replaced the letter “v” with “p” in the URL.
You can delay the command’s output with –delay switch.
The above command will wait for 5 seconds before displaying the output.
For more details about Seashells usage, run:
Have you got a long-running program on your remote system? Just keep an eye on it from your local system using Seashells. I hope this tool will help you in someway. I will be soon here with another helpful article. Until then, stay tuned with OSTechNix.
Cheers!
Resource:
No comments:
Post a Comment