diff options
author | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-01-06 20:40:04 +0000 |
---|---|---|
committer | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-01-06 20:40:04 +0000 |
commit | 2d418fd614835d3b54a0c87a7f1b0de8b507c7fb (patch) | |
tree | 6d7288b5d98bdef54be5e917f0c50b902a539345 /remind.sh | |
parent | b0d892ef73f47e1140d93c5cbea92fd6ea00a9cb (diff) |
amended to include port flag
Diffstat (limited to 'remind.sh')
-rwxr-xr-x | remind.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -88,11 +88,11 @@ COMMAND="REM $day ${MONTHS[$month]} $year AT $TIME +15 *5 MSG $DESCRIPTION %1" pid_cmd="pgrep remind" remind_command_msg="${brightyellow}Run '$remind_full' in a tmux window on $TW_HOOK_REMIND_REMOTE_HOST.$eescape" # first test if pid - if not exit (SCRIPT OBVIOUSLY WILL NOT PROCEED FOR TEST SERVER) -[[ -z $(ssh $TW_HOOK_REMIND_REMOTE_HOST "$pid_cmd") ]] && echo -e "${red}Failed to get remind PID. remind is not running.$eescape" && \ +[[ -z $(ssh -p 2222 lemon@$TW_HOOK_REMIND_REMOTE_HOST "$pid_cmd") ]] && echo -e "${red}Failed to get remind PID. remind is not running.$eescape" && \ echo -e $remind_command_msg && exit 1 # ------------- -ssh $TW_HOOK_REMIND_REMOTE_HOST " +ssh -p 2222 lemon@$TW_HOOK_REMIND_REMOTE_HOST " echo "$COMMAND" >> ~/.reminders/${TARGETFILE}.rem echo '' echo '${TARGETFILE}.rem remind file is now:' |