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 10-05-2017, 09:32 PM
chilisauce chilisauce is offline
Registered User
 
Join Date: Sep 2017
Posts: 6
Scheduled Task in Secure CRT

Hi,

I have a vbscript that does the ff:

1. Login to Telnet.
2. Read a textfile(contains list of command) to be sent to the Server.
3. Receive the Response from the Server.
4. Read line by line and save the Response in the text file.

Currently in Secure CRT, I am manually doing this by

1. Open Secure CRT
2. Go to the SCRIPT Menu, Click RUN.
2. Browse to the location where the vbscript is located and Hit RUN

Now, what I want to achieve if there is a way to automate Step 1, 2 and 3, to run on a daily basis at certain time.

Last edited by chilisauce; 10-06-2017 at 12:46 AM.
Reply With Quote
  #2  
Old 10-06-2017, 08:45 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,020
Hi chilisauce,

Can you, from CMD.exe, run the following successfully?
SecureCRT /Script "path_to_script.vbs"
If so, there's a good chance you can create a batch file and have it run as a scheduled task. You may need to add a few additional options to your command-line though (such as /F to be certain your SecureCRT config is found). All the command-line options are documented in three separate topics under SecureCRT's main Help topic Using the Software / Command-Line Options.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 10-08-2017, 08:41 PM
chilisauce chilisauce is offline
Registered User
 
Join Date: Sep 2017
Posts: 6
Quote:
Originally Posted by bgagnon View Post
Hi chilisauce,

Can you, from CMD.exe, run the following successfully?
SecureCRT /Script "path_to_script.vbs"
If so, there's a good chance you can create a batch file and have it run as a scheduled task. You may need to add a few additional options to your command-line though (such as /F to be certain your SecureCRT config is found). All the command-line options are documented in three separate topics under SecureCRT's main Help topic Using the Software / Command-Line Options.

I could not run those line using dos command, dos command could not recognize those. Does it have something to do with the installer? Currently I am using SecureCRT 7.1 Portable(Does not need to be installed.)

Last edited by chilisauce; 10-08-2017 at 09:33 PM.
Reply With Quote
  #4  
Old 10-09-2017, 09:25 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,020
Hi chilisauce,

Did you fully qualify the path to SecureCRT on the USB drive?

What error did you get?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #5  
Old 10-11-2017, 12:13 AM
chilisauce chilisauce is offline
Registered User
 
Join Date: Sep 2017
Posts: 6
Quote:
Originally Posted by bgagnon View Post
Hi chilisauce,

Did you fully qualify the path to SecureCRT on the USB drive?

What error did you get?
Hi bgagnon,

I was able to run the script in the dos command. But before I got the script working below are the steps that i did.

1. Configure the Global Setting to 'Use auto session'



2. Click the 'Edit Default Setting' and point to the location where the vbscript is located.



after the steps above, when i run the script via dos command line, it will auto connect then execute the script.

Last edited by chilisauce; 10-11-2017 at 02:27 AM.
Reply With Quote
  #6  
Old 10-11-2017, 09:45 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,020
Hi chilisauce,

Please send an email to support@vandyke.com and reference "Attn Brenda - Forum Thread #12851" in the subject line.

Attach a copy of your script (sensitive data redacted) and a screenshot of the Help / About SecureCRT... dialog.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
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 06:19 AM.