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-08-2016, 07:01 AM
Ttmylink Ttmylink is offline
Registered User
 
Join Date: Aug 2016
Posts: 2
Invalid command line option /SCRIPT

Hi,
I need to open SecureCRT and execute a script from windows shell (in a HTA application) but when I try to execute the command in the windows CMD shell,
everything work perfectly except the "/SCRIPT" option:
(I removed /L and /Password for the screenshot)



I'm new with SecureCRT, we use version 6.6.2.

The script "getConfig.vbs" is in the correct folder (../App) and work great in the GUI.

The application I am making is working with PuTTY but by simulating keypress... So running a script with SecureCRT would be much better.
Thank for your help!
Reply With Quote
  #2  
Old 08-08-2016, 09:22 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,997
Hi Ttmylink,

I think the issue is just that you have your command-line options out of order.

Per SecureCRT's Help topic Using the Software / Command-Line Options / Overview of Command-Line Options standard options (/SCRIPT is a standard option) come before protocol-specific options:

Syntax:
SecureCRT.exe [standard options] [protocol-specific options]

What are the results with:

SecureCRT\securecrt.exe /SCRIPT getconfig.vbs /ssh2 /L user /Password p4$$w0rd 10.15.1.30
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 08-09-2016, 06:02 AM
Ttmylink Ttmylink is offline
Registered User
 
Join Date: Aug 2016
Posts: 2
Thank you bgagnon, it worked!
My options were not in the right order.
Reply With Quote
  #4  
Old 08-09-2016, 07:03 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,997
Hi Ttmylink,

Great! I am glad to hear the issue is resolved. Thanks for posting an update!
__________________
Thanks,
--Brenda

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

Tags
/script , command line , invalid , option , 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 10:07 PM.