setmaps: clear_maps TCSMAP: A specified file does not support the ioctl system call.

Advertisement

Ayudo98
Joined:
Posts:
5
Location:
US

setmaps: clear_maps TCSMAP: A specified file does not support the ioctl system call.

Hello,

I am writing my first script, I need to transfer a file and execute a script in the remote system:

$Command = "./rm tr.sh"
$session.ExecuteCommand($Command)

The remote system is LINUX.

I am getting this error:

. 2019-06-03 15:06:17.701 [Shell] Using SCP protocol.
. 2019-06-03 15:06:17.701 [Shell] Doing startup conversation with host.
< 2019-06-03 15:06:17.701 Script: Starting the session...
. 2019-06-03 15:06:17.701 [Shell] Skipping host startup message (if any).
> 2019-06-03 15:06:17.701 [Shell] echo "WinSCP: this is end-of-file:0"
! 2019-06-03 15:06:17.716 [Shell] setmaps: clear_maps TCSMAP: A specified file does not support the ioctl system call.

I have tried using
$Command = "/bin/bash ./rm tr.sh"
same error.

What I am doing wrong?

Raul.
Description: Log
Description: script

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum