Skip to content

apimacro/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3/cover.png

Examples of usage the apimacro's

Install

Install from repo: https://github.com/apimacro/bash.git

./install.sh

Update works such git pull for bash repo: https://github.com/apimacro/bash.git

./update.sh

Start using apiMacro

List of projects

./apimacro

Run macro for 1/in.csv

./apimacro 1

The same, with separated details, run macro for 1/in.csv

./apimacro "1/in.csv" "1/out.csv" "1/status.csv"

Projects

files structure

1
    in.csv
    out.csv
2
    in.csv
    out.csv

Example no 1

Example with url and command: http_status_code executed in path: '/bash/apimacro/http_status_code.sh' through script: ./apimacro

1/in.csv

url,                    http_status_code
https://softreck.com
https://softreck.pl
https://sapletta.com
https://sapletta.pl

After running macro for project no: 1 will be generated 1/out.csv file with outputs data

./apimacro 1

Generated output data through running script: http_status_code.sh with each data record: url in second column are result of bash script: http_status_code

1/out.csv

url,                    http_status_code
https://softreck.com,   200
https://softreck.pl,    200
https://sapletta.com,   200
https://sapletta.pl,    200

Example no 2

Example with url and command: http_status_code executed in path: '/bash/apimacro/ping.sh' through script: ./apimacro

2/in.csv

host,                    ping
softreck.com
softreck.pl
127.0.0.1
localhost

After running macro for project no: 1 will be generated 2/out.csv file with outputs data

./apimacro 2

Generated output data through running script: ping.sh with each data record: url in second column are result of bash script: ping

2/out.csv

host,           ping
softreck.com,   PING softreck.com (212.227.10.167) 56(124) bytes of data. --- softreck.com ping statistics...
softreck.pl,    PING softreck.pl (212.227.10.167) 56(124) bytes of data. --- softreck.pl ping statistics...
127.0.0.1,      PING 127.0.0.1 (127.0.0.1) 56(124) bytes of data. --- 127.0.0.1 ping statistics --- ...
localhost,      $

You can use the to maintain and preview the content for your website in Markdown files:

About

Examples of usage the apimacro's

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages