From f85410d7cee20414f3099e408188cc732bae5c12 Mon Sep 17 00:00:00 2001 From: Nils Date: Thu, 1 Apr 2021 11:41:29 +0200 Subject: [PATCH] updated readme --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 ```