Focal Point
[CLOSED]Auto log into webfocus from command line

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7227039186

April 21, 2016, 07:37 AM
BJK
[CLOSED]Auto log into webfocus from command line
I am trying to create a batch file to automatically connect and login to webfocus using telnet and run the find command to locate any string. My problem is I can't seem to get past the password. It pops up for me to enter the password. Looks like telnet has a -l option for the user but no password option that i could find. Any one have any ideas.

B

thanks
brian

This message has been edited. Last edited by: <Emily McAllister>,


Product WF 7.1.6 Windows
Database Oracle
outputs PDF, HTML, EXCEL
April 21, 2016, 08:48 AM
BabakNYC
In unix you could use expect. I haven't tested it but it might look something like this:

set Password "your_password"
set Username "your_username"
telnet IPaddress
expect "Username: "
send "$Username\r"
expect "Password: "
send "$Password\r"



WebFOCUS 8206, Unix, Windows
April 21, 2016, 08:58 AM
Tom Flynn
Microsoft Telnet


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe