lnrun
Line Notify after runing a shell commands.
Goal
Receive notify after running a command.
graph LR
A(Your Phone)
B(LineNotify)
C(lnrun)
C --> B
B --> A
Requirement
- A Line Account
- Python 3.6+
How To Setup
- Go to Line Notify , and login to your account.
- Click right top and select My page.
- Generate access token (you can create a new group for notify bot) and copy that token for Step 6.
- Install lnrun using pip.
pip install lnrun
- Paste url to lnrun configs. (Note: configs will only save in your local machine.)
lnrun set_config line_token https://url.here
Now your good to go.
How To Use
lnrun [commands]
For example: my command is:
python train.py --config config/train.yaml
Using lnrun just add lnrun before it:
lnrun python train.py --config config/train.yaml
Configs
You can find all configs by running:
lnrun get_configs
Set config
lnrun set_config config_key config_value
Known Issue
- send_errors is not working when using tqdm. (Since both of them uses stderr)