Background of project -> I have to upgrade the Linux embedded system remotely. This requires to transfer the tar ball file from Windows Qt application to Linux box connected via Ethernet cable. The Linux box has fixed IP address.
What I have done so far -> Being complete novice in Qt, I have created a dialog box to browse the file and check tar ball file.
Issues -> Now I want that when I click another button, say Upgrade, it should transfer the files from Windows to Linux box (that has fixed IP address) and execute the bash script which has code how to upgrade different files.
May you guys please throw some light how would I send files from Windows to Linux box. I have looked at FTP client of Qt and I guess it downloads the file instead of transferring it.
Thanks and regards,
Sam
1) My batch script say upgrade.bat accepts 2 parameters like ip address , upgrade tar ball
then using putty.exe it transfers the file to linux machine connected via ethernet cable.
example in bat script
where target_update_file = tar ball file accept from Qt and target ip = ip address received as parameter to bat file from qt .
Now on qt , in upgrade button code