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 02-10-2015, 04:27 AM
fire820 fire820 is offline
Registered User
 
Join Date: Feb 2015
Posts: 5
How to call "blat" in script?

Hi all,

I want to use secureCRT for automated tests.
I want to catch some logs from console, then find out some key words, and then call "blat test.txt -to xxx@bbb.com" to send email.
But how to call windows application in secureCRT script?

Thanks a lot.
Reply With Quote
  #2  
Old 02-10-2015, 09:24 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi fire820,

Thanks for the post. Calling a Windows application will not be dependent on a SecureCRT script. It is outside of the scope of SecureCRT scripting. You would need to know how to do it in the language you are going to use to write your script. With more information I may be able to point you in the right direction, or at the least, show you where the documentation for the language is.

What is the version of SecureCRT that you are using?

What scripting language will you be using to write your script?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 02-10-2015, 11:08 PM
fire820 fire820 is offline
Registered User
 
Join Date: Feb 2015
Posts: 5
Hi Todd,

The version of SecureCRT is:
Version 7.0.0 (build 295) - Beta Release - May 22, 2012

And I want to use vbs script(*.vbs).
I wrote some simple vbs script fors SecureCRT before, but not good at it.
Thanks a lot.

Quote:
Originally Posted by rtb View Post
Hi fire820,

Thanks for the post. Calling a Windows application will not be dependent on a SecureCRT script. It is outside of the scope of SecureCRT scripting. You would need to know how to do it in the language you are going to use to write your script. With more information I may be able to point you in the right direction, or at the least, show you where the documentation for the language is.

What is the version of SecureCRT that you are using?

What scripting language will you be using to write your script?
Reply With Quote
  #4  
Old 02-11-2015, 10:18 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi fire820,

We have an example script at the following location that illustrates how to open a file in an editor on line 146:
https://forums.vandyke.com/showpost....3122#post43122
You can find more information about using WshShell at the following Microsoft website location:
https://msdn.microsoft.com/en-us/lib...(v=vs.84).aspx
Does this help you write your script?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #5  
Old 02-11-2015, 08:36 PM
fire820 fire820 is offline
Registered User
 
Join Date: Feb 2015
Posts: 5
Got it.
Sincerely thanks.
Reply With Quote
Reply


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 10:23 PM.