Sparrow - script manager. One can easily create and distributes scripts using Sparrow/Outthentic tool chain.

Here are some examples. ( You may find a detailed information at Sparrow docs )

# install sparrow

$ cpanm Sparrow

# create useful script

$ cat story.bash
/etc/init.d/nginx status # tell me if nginx server is running
$ touch story.check

# upload script to SparrowHub repository

$ cat sparrow.json
{
  "name" : "nginx-check",
  "version" : "0.0.1",
  "description" : "nginx check script"
}
$ sparrow plg upload

# run sparrow script at other host

$ ssh 192.168.0.1
$ sparrow plg install nginx-check
$ sparrow plg run  nginx-check

p> nginx-check at 2017-03-23 23:00:27
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
   Active: active (running) since Thu 2017-03-23 23:00:20 MSK; 6s ago
  Process: 10062 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
  Process: 10060 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
 Main PID: 10064 (nginx)
   CGroup: /system.slice/nginx.service
           ├─10064 nginx: master process /usr/sbin/nginx -g daemon on; master_process on
           └─10065 nginx: worker process
ok      scenario succeeded
STATUS  SUCCEED

Interested? You may know more - other plugins ready to use, tasks, cron jobs, check lists, YAML/JSON/Config::General configuration, other languages support and even more! Follow https://sparrowhub.org


In reply to Sparrow - your own script manager by melezhik

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.