Question : windows Batch script to test whether uid/pwd of the remote server is correct.

Dear experts ,

Can this be possible to built batch script that takes inputs  user id & password server, based on credential it should be able to give the mesg like whether uid/pwd are correct(consider user have access to the server by telnet/ssh )

In algorithm I can put tit like below.
 

If uid=testid and password=testpwd.

  .. &. &. Process &
  Give the mesg .... Successful

Else
  Give the mesg not successful
End if  

 
thanks for all in advance

Answer : windows Batch script to test whether uid/pwd of the remote server is correct.

> expect tool can generate log
yes

> can expect commands can be placed as part of batch/shell scripts?
if you mean stupid DOS/windoze batch (command.exe, cmd.exe): no (except you write the script line by line to a temporary file and call that with expect)
if you mean any common Unix shell: yes, no restrictions at all ;-)

But keep in mind that expect itself can be used as shell, as far as I see you don't need it in a shell around expect, expect can do anything you want itself (on any OS).
Random Solutions  
 
programming4us programming4us