Automated login example

this is a small script for automated login, can be used for regular maintenance or something

#!/bin/sh
#
#
server=x.x.x.x

(
   sleep 2;
   echo "username";
   sleep 2;
   echo "password";
   sleep 2;
   echo "do some manipulations in the session";
   sleep 3;
   echo "exit";
) | telnet $server

Related Posts

  • No related post found

Published by

avishay

avishay

HTMLy user