OpenResty - Resty script

This assumes you have installed OpenResty on a Linux system.

The resty command line tool can be used to issue in line commands, like this.

~]# resty -e 'print("Hello World")'
Hello World


Another approach is to create a resty script. Let's say foo.resty contains the following.

print("Hello World")


Invoking this script should return Hello World.

~]# resty foo.resty
Hello World


Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 3cc46 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |