1
0
mirror of https://github.com/byReqz/stocheck.git synced 2024-11-22 14:41:15 +00:00

Update README.md

This commit is contained in:
Nils 2021-01-23 00:03:20 +00:00 committed by GitHub
parent 2a9f68f746
commit 53a1fc0764
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,11 +11,18 @@ Options: <br>
-h/--help -- show help <br> -h/--help -- show help <br>
-u/--update -- update the script <br> -u/--update -- update the script <br>
**running it on a remote machine:** ### **running it on a remote machine:**
**running once:**
```bash ```bash
ssh root@remote 'bash -s' < stocheck.sh ssh root@remote 'bash -s' < stocheck.sh
``` ```
**proper alias:**
```bash
echo "function stocheck_remote { ssh root@"$"1 'bash -s' < ~/stocheck.sh; }" >> ~/.bashrc
echo "alias stocheck=stocheck_remote" >> ~/.bashrc
```
# installation # installation
1. download the script: <br> 1. download the script: <br>
```bash ```bash