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 -Xand 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 & logoffOn 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 OFFecho Test test test > test_output_file.txtNow, 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.
Running a batch script remotely using rdesktop
linux;ssh;command line;file sharing;rdesktop