To give you the best experience, this site uses cookies. Continuing to use 9bis.net means you agree to our use of cookies.
 

English version Russian version Version française Nederlandse versie Versión española Version portuguese Version polonaise Italian version Versiunea româna   KiTTY News

KiTTY : Forum

Last modification : -

KiTTY web site




Forum Home
 

How to use -cmd and -load ?

Christophe Colombier - Sat 02/02/2013 15:17:24 CET +0100

Hello,

I've just discovered KiTTY, and it looks great.

So many thanks for forking PuTTY.

I'm currently trying to use KiTTY from command line.

I've defined a KiTTY profile labeled "gateway", this profile contains the default settings for my gateway (such as host, login, keepalives, etc ...)

When I use this command, I'm able to use the "gateway" profile and log on my gateway

kitty.exe -load gateway

Meanwhile, I've discovered that -cmd parameter exists, and it works like a charm :)

kitty.exe -ssh my.ssh.gateway.net -cmd "ssh my.distant.machine.net"


But when I try to use -load and -cmd, the -cmd part is not used.

kitty.exe -load gateway -cmd "ssh my.distant.machine.net"

Please not that in "gateway" profile "Command" field (Connection>Data) is empty

Is anyone able to help me ? Is it a bug ?

Thanks by advance

Christophe Colombier

Cyd - Sat 02/02/2013 22:15:55 CET +0100

It's a normal behavior.
-load option run the session stored in the registry. If you need to start automatically a command you must set the Command field.

Christophe Colombier - Sun 03/02/2013 14:06:27 CET +0100

Thank for confirming me that -cmd and -load can't be used together.

It looks like to me to be a little bit restrictive as -cmd can't only be used with the default profile.

Nevermind, I'll define all my session settings into my KiTTY Default Profile (including my login, ssh key, and gateway host) then use -cmd

Cheers






Answer


The forum is actually closed