From 7aee2037fb9183cbbc47b52cd291cd5d2790f1a8 Mon Sep 17 00:00:00 2001 From: syui Date: Sat, 17 Feb 2024 19:15:55 +0900 Subject: [PATCH] fix scpt --- .config/ai/scpt/arch.zsh | 2 +- .config/ai/scpt/diffusers.zsh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/ai/scpt/arch.zsh b/.config/ai/scpt/arch.zsh index b2b7715..a260d8b 100755 --- a/.config/ai/scpt/arch.zsh +++ b/.config/ai/scpt/arch.zsh @@ -68,7 +68,7 @@ case "$1" in echo "machinectl reset done" ;; *) - sudo machinectl start $name + #sudo machinectl start $name t=`ssh $name "$*"` if [ -z "$t" ];then ssh -tt $name "$*" diff --git a/.config/ai/scpt/diffusers.zsh b/.config/ai/scpt/diffusers.zsh index b9cc437..0fd9c02 100755 --- a/.config/ai/scpt/diffusers.zsh +++ b/.config/ai/scpt/diffusers.zsh @@ -93,8 +93,8 @@ function run(){ if [ -f $f_sleep ];then rm $f_sleep fi - ssh ue "conda activate ldm;cd ./stable-diffusion/;python safe.py \'${q}\' ${m}" - scp -r ue:stable-diffusion/t.png $f + ssh diffusers "conda activate ldm;cd ./stable-diffusion/;python safe.py \'${q}\' ${m}" + scp -r diffusers:stable-diffusion/t.png $f if [ $? -ne 0 ];then touch $f_sleep fi