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

Re: ssh remote enter simple txt


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

Follow-Ups:
Re: ssh remote enter simple txtAris Adamantiadis <aris@xxxxxxxxxxxx>
References:
ssh remote enter simple txtzi zu <zizu0000@xxxxxxxxx>
Re: ssh remote enter simple txtg4-lisz@xxxxxxxxxxxx
Archive administrator: postmaster@lists.cynapses.org