VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   General (https://forums.vandyke.com/forumdisplay.php?f=11)
-   -   Linux Version Command Line Options (https://forums.vandyke.com/showthread.php?t=13205)

alexj212 08-06-2018 02:59 PM

Linux Version Command Line Options
 
Is there an option to launch securecrt and open a local shell?

Also is there a way to launch securecrt so that if there is an existing instance running it will add a session to the current tabs?

Thanks in advance

ekoranyi 08-06-2018 03:14 PM

Hi alexj212,

To get a better idea of the options available to you I will need to get a little more information. What version of SecureCRT are you running (Help > About SecureCRT or SecureCRT > About SecureCRT)? What Operating System are you running SecureCRT on?

Are you wanting SecureCRT to automatically open a local shell every time you open the application?

Can you tell me a little more about how you are launching SecureCRT when you see multiple instances? Are you using a shortcut, command line, web links?

alexj212 08-06-2018 03:24 PM

I am running on ubuntu linux. Basically I changed the default key binding of the OS to StartKey + T to launch a terminal.

When I do that I would like to launch a terminal open to the local shell. So I was looking to pass options on the command line to open a terminal to the local shell. I did not find that option under the command line options.

Also what I was asking is if an instance is running on the system, and I launch another instance via command line, is it possible to just bring up the existing instance to the forefront and open a new tab to the session specified such as the local shell.

Thanks

ekoranyi 08-06-2018 03:54 PM

alexj212,

To have the local shell automatically open you will first want to create a new session using the Local Shell protocol. After creating this session navigate to Options > Global Option > Default Session. Here you will want to enable the Use auto session option and Add... the newly created Local Shell session.

This should automatically open a local shell anytime you launch SecureCRT. Does this get you the desired behavior?

From the command line you can use the /T option to open a session in a new tab. When used in conjunction with the /S options, the /T option opens the specified session or sessions in a separate tab or tabs. For example, the command:

Code:

/T /S ubuntu
opens session ubuntu in a new tab. You may be able to get the behavior you're looking for by mapping your StartKey + T shortcut to something like the following.

Code:

SecureCRT /T /S <name of your local shell session>
Does this help?

alexj212 08-06-2018 03:59 PM

Yes SecureCRT /T /S localshell

worked once I created a session with that name.

Thanks

ekoranyi 08-06-2018 04:04 PM

alexj212,

I'm glad to hear that gave you the desired behavior.

Have a great rest of the day.


All times are GMT -6. The time now is 02:19 AM.