guides:patterns:winscp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guides:patterns:winscp [2020/08/03 19:50] – wikiadmin | guides:patterns:winscp [2024/07/25 15:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 6: | Line 6: | ||
- Using an editor on a windows system, the user changes files, which are automatically transferred to a remote machine. | - Using an editor on a windows system, the user changes files, which are automatically transferred to a remote machine. | ||
- Using an terminal open on the remote machine (PuTTY), the user compiles and executes the code. | - Using an terminal open on the remote machine (PuTTY), the user compiles and executes the code. | ||
- | - | + | |
{{: | {{: | ||
Line 15: | Line 15: | ||
This client can be configured to provide a simple yet powerful graphics environment when editing on windows and compiling on a remote linux machine. | This client can be configured to provide a simple yet powerful graphics environment when editing on windows and compiling on a remote linux machine. | ||
- | WinSCP has the option of using a built-editor or an editor that has been installed on the windows computer. | + | WinSCP has the option of using a built-editor or an editor that has been installed on the windows computer. |
+ | A minor change needs to be made to WinSCP to prevent this software from changing the timestamp on the remote machine, thus confusing the make system. | ||
===== Configuration Steps ===== | ===== Configuration Steps ===== | ||
+ | ==== Configuring an Alternative Editor for WinSCP ==== | ||
+ | |||
+ | In order to perform this procedure, you should have an alternative text editor installed on your windows computer. | ||
+ | |||
+ | - Connect to the remote machine with WinSCP. | ||
+ | - Right click on any text file and select *Edit* -> *Configure ...* | ||
+ | - {{: | ||
+ | - Select the *Add* option to add a new editor. | ||
+ | - {{: | ||
+ | - Select *External Editor:* and browse to your editor of choice. | ||
+ | - {{: | ||
+ | - If you are unsure of the location of your editor you can: | ||
+ | - Right click on the editor icon on the desktop and select *Preferences * | ||
+ | - {{: | ||
+ | - Note the path to the executable in the *Target* box | ||
+ | - {{: | ||
+ | - Be sure to browse to the path as WinSCP adds other values at the end of the path. | ||
+ | - Click *OK* and finish | ||
+ | - {{: | ||
+ | - If you want this become the default editor, use the *Up* button to move the new entry to the top of the list. | ||
+ | - {{: | ||
+ | |||
+ | |||
+ | ==== Disabling Timestamp Preservation in WinSCP ==== | ||
+ | |||
+ | At the time of writing the default configuration for WinSCP attempts to preserve the time stamp for files transferred. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Note that the time for the file main.cpp is only the date, not the date and time. Also notice that make flags this as an error. | ||
+ | |||
+ | To correct this problem: | ||
+ | - In the WinSCP application | ||
+ | - Select the Dropdown menu for *Transfer | ||
+ | - {{: | ||
+ | - Select *Default* and click on *Edit* | ||
+ | - Disable *Preserve timestamp* in the *Common Options* area | ||
+ | - {{: | ||
+ | - Click *OK* to close each window. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Note the time is now included for the file main.cpp and // make // no longer reports an error. | ||
===== Resources ===== | ===== Resources ===== | ||
* [[https:// | * [[https:// | ||
guides/patterns/winscp.1596484214.txt.gz · Last modified: 2024/07/25 15:01 (external edit)