mirror of
https://github.com/byReqz/stocheck.git
synced 2024-11-14 19:53:15 +00:00
updated readme
This commit is contained in:
parent
fd6c4b347d
commit
f85410d7ce
11
README.md
11
README.md
@ -20,14 +20,21 @@ Options: <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:**
|
**running from the local file (can be automated with cron):**
|
||||||
```bash
|
```bash
|
||||||
ssh root@remote 'bash -s' < stocheck.sh
|
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:**
|
**proper alias:**
|
||||||
```bash
|
```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
|
echo "alias stocheck=stocheck_remote" >> ~/.bashrc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user