#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
Quote:
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. |
#4
|
|||
|
|||
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 |
#5
|
|||
|
|||
Quote:
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. |
#6
|
|||
|
|||
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 |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|