neolithic All American 706 Posts user info edit post |
I'm editing some source files that need to be run remotely and I'd like to use my editor locally. Is there some sort of streamed lined way in which I can save the files onto the remote machine without having to sftp into the remote machine and copy the files over every time? Something along the lines of a script or a symbolic link? I'm using Linux and have SSH/SFTP access to the machine.
[Edited on March 3, 2008 at 1:37 PM. Reason : ] 3/3/2008 1:37:08 PM |
sarijoul All American 14208 Posts user info edit post |
can you not run some sort of editor that is actually editing the remote file (vi, emacs, etc) on the remote computer?
oh. i reread. why do you need to run the editor locally?
[Edited on March 3, 2008 at 1:50 PM. Reason : .] 3/3/2008 1:50:30 PM |
A Tanzarian drip drip boom 10995 Posts user info edit post |
nfs or sshfs 3/3/2008 2:12:13 PM |
neolithic All American 706 Posts user info edit post |
Quote : | "can you not run some sort of editor that is actually editing the remote file (vi, emacs, etc) on the remote computer?
oh. i reread. why do you need to run the editor locally?" |
Because I'm inept with vi/emacs to the point of retardation and being dangerous..... I know.3/3/2008 2:14:05 PM |
Shaggy All American 17820 Posts user info edit post |
^^ or use an editor that supports FTP/ssh
[Edited on March 3, 2008 at 2:16 PM. Reason : .] 3/3/2008 2:15:56 PM |
ncsuapex SpaceForRent 37776 Posts user info edit post |
seriously... vi/vim is not that hard. Just start a new vi file and google for vi commands and practice. Screw around with something that you can screw up, always make a backup before you start dicking around with a file so if you do screw it up you can go back to the backup.
You'll thank yourself later. 3/3/2008 2:16:56 PM |
A Tanzarian drip drip boom 10995 Posts user info edit post |
^^ Yeah.
I figured he had some weird reason for editing locally. I wouldn't have guessed that a linux user would be unwilling/unable to use vim.
Don't most of the popular desktops (KDE/GNOME) include file managers that allow you to browse sftp? 3/3/2008 2:22:04 PM |
neolithic All American 706 Posts user info edit post |
I know. I took heat from the "old guys" at my last job for not knowing vi, and after seeing how efficient it is I can understand why. Right now, however, isn't the time for me to learn it but I will probably try to sometime in the future. Thanks for the suggestions, I'm sure I can find and editor with some FTP/SSH capability. 3/3/2008 2:26:17 PM |
qntmfred retired 40726 Posts user info edit post |
i've been using editplus for a long time and it has ftp capabilities. 3/3/2008 3:14:55 PM |
Aficionado Suspended 22518 Posts user info edit post |
emacs would be better for you if you dont have much time to spend learning a new program 3/3/2008 3:36:32 PM |
sarijoul All American 14208 Posts user info edit post |
if you learn just the basic cut/paste/save commands, you could get up and running on emacs in ten minutes. it's really not hard. 3/3/2008 4:37:12 PM |
Wolfmarsh What? 5975 Posts user info edit post |
Ultraedit can do it. 3/3/2008 6:44:00 PM |
neolithic All American 706 Posts user info edit post |
Slickedit did a great job 3/4/2008 3:50:32 PM |
Golovko All American 27023 Posts user info edit post |
I use coda for ssh/sftp editing files remotely. Not sure if there is a linux build...think its just for Mac's. 3/4/2008 5:22:42 PM |
joe17669 All American 22728 Posts user info edit post |
I create a connection to the server using WinSCP, and when I right click on the file I want to edit, choose Edit, it will download a local copy to a temporary location on my HDD and open in my editor of choice (emEditor).
When I hit save, WinSCP automatically picks up this change, and re-uploads the new file to the remote server. 3/4/2008 5:50:32 PM |