Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2023-11-30 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?