diff --git a/README.md b/README.md index 6d3d093..073cda9 100644 --- a/README.md +++ b/README.md @@ -20,14 +20,21 @@ Options:
-u/--update -- update the script
### **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 ```