ScSSHShell.ExecuteCommand: user's shell not fully configured

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
benkedon
Posts: 28
Joined: Tue 15 May 2007 12:27

ScSSHShell.ExecuteCommand: user's shell not fully configured

Post by benkedon » Thu 28 Aug 2008 20:49

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

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 01 Sep 2008 08:13

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.

Post Reply