Re: Editing remote *nix files from Windows?
by ikegami (Patriarch) on Dec 15, 2009 at 17:28 UTC
|
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] |
|
Thanks, I'll give this a try!
| [reply] [Watch: Dir/Any] |
Re: Editing remote *nix files from Windows?
by Fletch (Bishop) on Dec 15, 2009 at 18:52 UTC
|
Another possibility to consider (if you can make changes or coerce the sysadmin to make changes) would be to use Samba and mount the files from the Linux box as a remote drive on the Windows side and treat them as any other locally accessible file.
The cake is a lie.
The cake is a lie.
The cake is a lie.
| [reply] [Watch: Dir/Any] |
Re: Editing remote *nix files from Windows?
by snoopy (Curate) on Dec 15, 2009 at 19:52 UTC
|
Another possibility is to map a network drive via ssh on Windows.
The drive can be mapped via Putty.
There are several other approaches, including Dokan (a FUSE emulation for Windows).
Update:
Thanks afoken, good point!
- The Putty solution requires that a local Samba service is running on the remote machine. This is then tunnelled via ssh back to the Windows machine.
- The Dokan and other FUSE family solutions are a different animal. These run directly over ssh and should be able to be used on just about any *nix machine that's serving ssh, without prior setup.
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] |
Re: Editing remote *nix files from Windows?
by elTriberium (Friar) on Dec 15, 2009 at 19:41 UTC
|
You can also write a Perl script that will run on the Linux system. Then you can use Expect.pm to login to that client and execute the Perl script on the Linux system.
Or you login with Expect and just run the command line tools that you mentioned, such as cat, echo, touch, ...
| [reply] [Watch: Dir/Any] |
|
Note that under Windows Expect only works when used inside the Cygwin port of Perl.
| [reply] [Watch: Dir/Any] |
Re: Editing remote *nix files from Windows?
by vlsimpson (Beadle) on Dec 15, 2009 at 17:21 UTC
|
The linux box should have text editors installed; vim, emac, etc.
You could edit the files locally also, and ship 'em over by sftp. Check out Putty (Google it). It's a real nice telnet client that handles ssh, sftp, scopy for windows.
| [reply] [Watch: Dir/Any] |
|
that's what I'm using for manual editing - Putty + mc
how does that help me to do it with perl?
the FTPing suggestion is good though
| [reply] [Watch: Dir/Any] |
|
Oops, completely misunderstood the question.
| [reply] [Watch: Dir/Any] |
Re: Editing remote *nix files from Windows?
by eye (Chaplain) on Dec 15, 2009 at 19:41 UTC
|
But I need to update some files automatically.
Is this something that could be done with a Perl script on the linux host that is initiated by cron on a regular schedule? | [reply] [Watch: Dir/Any] |