1
0
mirror of https://github.com/byReqz/stocheck.git synced 2024-12-25 18:41:48 +00:00

updated readme

This commit is contained in:
Nils 2021-04-01 11:41:29 +02:00
parent fd6c4b347d
commit f85410d7ce
Signed by: byreqz
GPG Key ID: 396A62D7D436749E

View File

@ -20,14 +20,21 @@ Options: <br>
-u/--update -- update the script <br>
### **running it on a remote machine:**
**running once:**
**running from the local file (can be automated with cron):**
```bash
ssh root@remote 'bash -s' < stocheck.sh
```
or
**running directly from github**
```bash
ssh root@remote "curl -s "https://raw.githubusercontent.com/byReqz/stocheck/main/stocheck.sh" | bash"
```
**proper alias:**
```bash
echo "function stocheck_remote { ssh root@"$"1 'bash -s' < ~/stocheck.sh; }" >> ~/.bashrc
echo "function stocheck_remote { ssh root@'$'1 'bash -s' < ~/stocheck.sh; }" >> ~/.bashrc
echo "alias stocheck=stocheck_remote" >> ~/.bashrc
```