Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-04-2013, 03:57 AM
vb.green vb.green is offline
Registered User
 
Join Date: Aug 2013
Posts: 4
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
Reply With Quote
  #2  
Old 08-05-2013, 10:53 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
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?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 08-06-2013, 11:00 AM
vb.green vb.green is offline
Registered User
 
Join Date: Aug 2013
Posts: 4
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
Reply With Quote
  #4  
Old 08-06-2013, 03:15 PM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
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#post37087
You 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.
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
Reply

Tags
login , script


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 09:42 PM.