Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2009
    Posts
    1

    Unanswered: Viewing a unix file on windows

    Hi all ,


    I have a server runing AIX and our network admin has disabled all the access to the server except for telnet .I need to view some log files on my PC .

    I can telnet to the machine and see the file using vi but I would like to automate the process .

    Is there a way that I can write a scrip that does the telnet then types the username and password and type the contents of the file and save the session info in a file that I can then see on my PC .


    Thanks

  2. #2
    Join Date
    Jun 2007
    Location
    London
    Posts
    2,527
    Could you write a batch on your PC to ftp the file across each day or get the Unix box to email you the file when it creates it? It might also be worth looking into something like Samba which allows you to view Unix directories from a PC.

  3. #3
    Join Date
    Sep 2009
    Location
    Ontario
    Posts
    1,057
    Provided Answers: 1
    Some terminal emulation programs allow scripting. I assume from your statement that the sysadmin has blocked all access except telnet to mean that ftp/smb/nfs protocols are out.
    Try April System Design

  4. #4
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool Simple ftp may work:

    Perhaps you could try to ftp the file:
    Code:
    set HOST=thehost.mydomain.com
    set GETFILE=MyFile.txt
    (
    echo cd  /source/directory
    echo lcd /target/directory
    echo get %GETFILE%
    echo bye
    )|ftp %HOST%
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •