#1
|
|||
|
|||
Login Script
Hi Guys,
I am creating script to automate a task on my UNIX server. I have created a VB script which logs into my UNIX server using http://www.vandyke.com/support/secur...t_ssh2_vbs.txt. Once it logs in, it runs a few commands and task is done. I would be running this script using a DOS batch file. However, whenever I want to make sure that if the user enters invalid login credentials, the script doesn't stop and asks for credentials again and again. My second question is whether it is possible to invoke SecureCRT in backgroud/hidden mode using my batch file. Thanks a lot |
#2
|
|||
|
|||
Hi vb.green,
Thanks for the post. What is the version of SecureCRT that you are using? The script you referenced doesn't have a loop, so I am not sure how it could continue to ask for credentials. Would you post your batch file? What is your goal for launching SecureCRT in a hidden mode? |
#3
|
|||
|
|||
Thanks for your prompt reply. I'm using version 6.2
I meant that my current script doesnt ask for password repeatedly. I want ask for it if the credentials are invalid. How do i check for a login failure. My batch file has many other commands but only one line related to this: SecureCRT.exe /SCRIPT myscript.vbs I want to run the securecrt window in hidden mode because there are quite a few commands that my vbs script will execute. It'll get a lot of output on the screen which is not necessary to the user. Please let me know if hiding the secureCRT window is possible |
#4
|
|||
|
|||
Hi vb.green,
SecureCRT version 6.2 is no longer in active development, so your mileage may vary. You can find an example of how to handle authentication in the terminal window at the following location: http://forums.vandyke.com/showthread...7087#post37087You could use the concepts in this example to determine authentication failure. It is possible to hide the SecureCRT window after the script has been launched using the Window object. You can find the Window object documentation in the Scripting / Script Object Reference / Window Object chapter in the SecureCRT help file. |
![]() |
Tags |
login , script |
Thread Tools | |
Display Modes | Rate This Thread |
|
|