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-19-2009, 04:16 PM
Charles Campbel Charles Campbel is offline
Registered User
 
Join Date: Aug 2009
Posts: 2
How do i get auto session to run a script?

I have several sessions open when o login. I when manually run a script for each session; the script gathers data and puts into a file than emails the file to me. Is there a way to get the script to run once Im logged in? What Id like is to have the Windows scheduler auto start SecureCRT. SecureCRT auto start my session and run my script.
Reply With Quote
  #2  
Old 08-20-2009, 08:53 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,313
Hi Charles,

What version of SecureCRT are you using?

As of SecureCRT 5.5, the ability to launch a set of sessions by specifying folders or multiple sessions as auto sessions was added. This is in the 'General / Default Session' category of Global Options.

In the session(s), you would then need to specify your script in the 'Connection / Logon Actions' (previously 'Logon Scripts') category of Session Options.

If using a version prior to SecureCRT 5.5, I would suggest a slightly modified approach.

You could launch SecureCRT with the "/script" argument in Scheduled Tasks and within your script, connect to the desired session with obj.Session.Connect "/S <session_name>".

Will one of the above methods help to accomplish your goal?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 08-21-2009, 12:50 PM
Charles Campbel Charles Campbel is offline
Registered User
 
Join Date: Aug 2009
Posts: 2
Thank you.......

It'a working like a charm..
Reply With Quote
  #4  
Old 08-21-2009, 01:09 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,313
Hi Charles,

Great, I am glad to hear you are able to run scripts from multiple auto sessions.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #5  
Old 01-30-2013, 08:22 PM
reontucks reontucks is offline
Registered User
 
Join Date: Jan 2013
Posts: 3
Hi, I have the same problem but my Secure CRT version was 6.1.1
Reply With Quote
  #6  
Old 01-31-2013, 08:17 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi reontucks,

Please see my response to your post in forum thread 10860.
__________________
--Todd

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

Last edited by jdev; 01-31-2013 at 09:07 AM.
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 05:32 AM.