Sample Header Ad - 728x90

Running a batch script remotely using rdesktop

1 vote
0 answers
2680 views
I have a setup that implies calling **rdesktop** on a remote machine which is accessed through ssh: user@192.168.1.110:~$ ssh user@192.168.1.120 -X and then running **rdesktop** as: user@192.168.1.120:~$ rdesktop 192.168.2.130 -u username -p password -r disk:local="./TestRDP" -s "cmd.exe /K net use C: \\\\tsclient\local & C:\\test.bat & logoff" On the machine that **rdesktop** is being run on there exists a directory **TestRDP** in which **rdesktop** is called which contains a file **test.bat** that creates another file for testing purposes: **test.bat**: @ECHO OFF echo "Test test test" > test_output_file.txt Now, shouldn't file **test_output_file.txt** be created on the machine on which **rdesktop** has been called in directory **TestRDP**? The linux machines are both running debian and the remote desktop machine Windows 7.
Asked by Sebi (1029 rep)
Apr 12, 2016, 04:07 PM
Last activity: Apr 13, 2016, 09:04 AM