If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Viewing a unix file on windows

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-11-09, 08:40
salsabiha salsabiha is offline
Registered User
 
Join Date: Nov 2009
Posts: 1
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
Reply With Quote
  #2 (permalink)  
Old 11-11-09, 08:59
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
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.
Reply With Quote
  #3 (permalink)  
Old 11-11-09, 21:24
kitaman kitaman is offline
Papabi's friend
 
Join Date: Sep 2009
Location: Ontario
Posts: 626
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
Reply With Quote
  #4 (permalink)  
Old 11-13-09, 12:48
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,455
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On