Page 1 of 1

ScSSHShell.ExecuteCommand: user's shell not fully configured

Posted: Thu 28 Aug 2008 20:49
by benkedon
When I execute a 'set' command on a Linux server, via SSHShell, the environment isn't fully configured compared to the same command executed in a standalone SSH client program like PuTTY.

It seems like maybe not all the user environment login scripts had enough time to be executed when the shell was being established, by the 'ExecuteCommand' method, before the command was executed.

Any ideas how I can fix this ?

Thanks,
Don

Posted: Mon 01 Sep 2008 08:13
by Dimon
The thing is that ExecuteCommand executes command in special 'Shell' mode.
Please try to use the WriteString method instead of ExecuteCommand to send a command to the server.