event-sender

command
v1.1.44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

event-sender

sample


# open browser
./event-sender -type 'com.plugis.browser.open' -data '{"url":"https://google.fr"}' -router 'https://nats1.plugis.com'

# shell command
./event-sender -type 'com.plugis.shell.command' -data '{"command": ["df","-lh","/"]}' -topic "com.plugis.shell.B8:27:EB:E7:B3:4E" -request
./event-sender -type 'com.plugis.shell.command' -data '{"command": ["sudo","apt","update"]}' -topic "com.plugis.shell.B8:27:EB:E7:B3:4E" -request
./event-sender -type 'com.plugis.shell.command' -data '{"command": ["sudo","apt","-y","upgrade"]}' -topic "com.plugis.shell.B8:27:EB:E7:B3:4E" -request
./event-sender -type 'com.plugis.shell.command' -data '{"command": ["hostnamectl"]}' -topic "com.plugis.shell.B8:27:EB:E7:B3:4E" -request -timeout 10
./event-sender -type 'com.plugis.shell.command' -data '{"command": ["sudo","arp-scan","--interface=eth0","--localnet"]}' -topic "com.plugis.shell.B8:27:EB:E7:B3:4E" -request

./event-sender -type 'com.plugis.shell.command' -data '{"command": ["sudo","reboot"]}' -topic "com.plugis.shell.B8:27:EB:2C:83:55" -request

./event-sender -type 'com.plugis.shell.command' -data '{"command": ["sh","-c","apt install -y ansible"]}' -topic "com.plugis.shell.8E:82:45:0E:A4:6F" -request -timeout 300


add the command on osX

sudo ln -s event-sender /usr/local/bin/event-sender

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL