Re: Open a file from remote Windows and use the content in the file locally



youyou schrieb:
hi,

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)
Not sure. Either have the windows system export the file via SMB/CIFS
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


.



Relevant Pages

  • [Full-Disclosure] ron1n phone home, episode 4
    ... Hacking from Windows 3.x, 95 and NT ... Use secret Windows 95 DOS commands to track down and port surf computers ... Download hacker tools such as port scanners and password crackers designed ... Now you have the option of eight TCP/IP utilities to play with: telnet, ...
    (Full-Disclosure)
  • Re: Product for Running Embedded C# Application
    ... Telnet sessions or Web sessions with our Web server on the device and a lot ... There's a Telnet server available to Windows CE ... communicates with specific hardware and forwards data to a back end ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Restore Question....
    ... Did you buy computer at a local store or online? ... the updates are listed in my Add/Remove Programs." ... Are the Windows Updates listed -Start, Control Panel, Add / Remove ... About three weeks ago I tried to use the System Restore feature to ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Best Programming Practice?
    ... how well developed applications are and it is a blackmark when an app uses ... MSDN, Windows 2003 specifications, as well as the Windows XP logo ... Store user-created documents under a subfolder of My Documents, ... There are pros/cons to storing user preferences in files, the registry, ...
    (microsoft.public.windows.terminal_services)
  • Re: who is to blame?
    ... as representative for the 'hundreds of millions' windows users ... >>That still does not exclude the possibility that for others Macs would ... you will find my reasons to buy my powerbook. ... Apple has an online store. ...
    (comp.sys.mac.advocacy)