Topic "winSCP Connection Problem after Target Server runs script command"

Author Message
Myo Min Thein
[View user's profile]

Joined: 2016-12-14
Posts: 2
Hello guys,

I am new to winSCP.
I would like to ask you about winSCP's limitations and side effects.

WinSCP Version: 5.9.3
Protocol: SFTP

I inserted "script command" in target server to track user operations.
Here is the "script command"
.bash_profile
Code:
{
......
script -f /tmp/`date +%Y%m%d_%H%M%S`_$USER.log
[EOF]
}

That command runs first whenever user's terminal starts opening.

After I inserted the command in target server, I connected target server via winSCP.
Even winSCP can be opened, I can't open winSCP's Terminal.
Please refer the following picture for error and root@10.1.9.207_env.log.




I found on winSCP's official site that
Quote:
winSCP does not support commands that require terminal emulation or user input.


My understanding is
When winSCP's terminal opens, script command runs in that terminal automatically.
After script commands runs, error occurred as shown in picture(1).


I executed "script command" while the command haven't inserted in target server as environment variable.
I got error message as following picture and root@10.1.9.207_terminal.log.




May I know the followings!
How does "script command" concerns with winSCP's limitation?
What's the effect of "script command" on winSCP?


Thanks
Myo Min Thein

Last edited by Myo Min Thein on 2016-12-15 11:37; edited 1 time in total
root@10.1.9.207_env.log (33.36 KB) [Download]

Description: winSCP Log (Run script command from target server's environment variables)

root@10.1.9.207_terminal.log (34.66 KB) [Download]

Description: winSCP Log (Run script command from winSCP's terminal)

Advertisements
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26911
Location: Prague, Czechia
Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Last edited by martin on 2016-12-15; edited 1 time in total
Myo Min Thein
[View user's profile]

Joined: 2016-12-14
Posts: 2
Sorry for my incomplete question.
I've uploaded winSCP logs.
I posted same question on "https://superuser.com" to notify more developers.

Sorry for your inconvenience.

Thanks
Myo Min Thein
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26911
Location: Prague, Czechia
A have responded on the Super User:
https://superuser.com/q/1156759/213663
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum

Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License