I have a setup that implies calling rdesktop on a remote machine which is accessed through ssh:
email@example.com:~$ ssh firstname.lastname@example.org -X
and then running rdesktop as:
email@example.com:~$ 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:
@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.