Re: Open a file from remote Windows and use the content in the file locally
- From: Michael Schlenker <schlenk@xxxxxxxxxxxxxxxx>
- Date: Fri, 14 Jul 2006 19:59:50 +0200
youyou schrieb:
hi,Not sure. Either have the windows system export the file via SMB/CIFS
I am new here, i have been google around for so long on this issue so i
decided to stop by and bother you guys.
I use tcl and Expect on a Redhat linux system to remotely telnet to a
windows system to run some test. end of the test, a file called
"log.dat" is generated. then i will need to analyze the number of
errors in the log.dat(basically all text) to decide what the windows
system should do next.
so here comes the question, how do i process the log file, so i can use
it locally on Red hat to do a check? (my idea is to store the content
of log.dat as a variable locally, then use regular expresstion to check
it)
and mount the share with Samba on redhat, to get at it, probably the
easiest thing.
You could also use a http server on the windows machine and the tcl http
package, similar for ftp.
If you don't want to do anything like that you could cat the file via
telnet and store the response. File transfer via telnet is a bit crude,
but works, even for binary files if you have uuencode and uudecode or
something like base64.
Michael
.
- References:
- Prev by Date: Open a file from remote Windows and use the content in the file locally
- Next by Date: Re: Open a file from remote Windows and use the content in the file locally
- Previous by thread: Open a file from remote Windows and use the content in the file locally
- Next by thread: Re: Open a file from remote Windows and use the content in the file locally
- Index(es):
Relevant Pages
|