[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cannot rum multiple command on remote machine via SSH



On Sat, 4 Feb 2023 11:24:37 +0000
Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> wrote:

> At night, I want to connect to LAP2 and perform these commands:
> 
> $ sudo tlp setcharge 90 95 BAT1 # resets battery settings for
> external battery
> 
> $ hibernate.sh # a script that performs some housekeeping, puts
> laptop into hibernation and eventually disconnects sshd.

Not what you asked, but why not automate these with cron jobs?

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/


Reply to: