[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ssh remote enter simple txt
[Thread Prev] | [Thread Next]
- Subject: Re: ssh remote enter simple txt
- From: Aris Adamantiadis <aris@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 19 Nov 2018 15:26:56 +0100
- To: libssh@xxxxxxxxxx
in which case the command "yes | ssh root@cisco shutdown -r now" should work On 19/11/2018 13:32, g4-lisz@xxxxxxxxxxxx wrote: > Sorry, this does not solve the confirmation issue. The reboot command > does not have a 'silent', 'force', -y or similar argent? > > Till > > On 19.11.18 13:26, g4-lisz@xxxxxxxxxxxx wrote: >> If Cisco SSH allows you to execute commands remotely, you're barking up >> the right tree... In fact, you only need a ssh client and then you put >> something like that in your cron file: >> >> 04,37 * * * * sshuser ssh root@cisco shutdown -r now >> >> My five cents... >> >> Till >> >> On 19.11.18 07:52, zi zu wrote: >>> I am trying to ssh into a system that does NOT have : >>> echo, touch, cat, history, pretty much nothing ... >>> >>> This system is a Cisco appliance and I can log in and issue reboot but >>> reboot wants confirmation - a simple Y will do but I want to script it >>> so I can put into cron and have it done each Sunday... I've tried Perl >>> expect but I am no Perl programmer - I am slightly better with C ... lol >>> >>> >>> My question is - will libssh accomplish this or am I barking up the >>> wrong tree? >>> >>> Thx/Bill >>> >>> Deut 10:17
ssh remote enter simple txt | zi zu <zizu0000@xxxxxxxxx> |
Re: ssh remote enter simple txt | g4-lisz@xxxxxxxxxxxx |
Re: ssh remote enter simple txt | g4-lisz@xxxxxxxxxxxx |