Solved

log file

Posted on 2014-04-15
6
350 Views
Last Modified: 2014-10-14
My cat export.log file is about 17 pages and is scrolled up
in AIX box..
I want to copy all the contents in notepad
What steps you have
0
Comment
Question by:tonydba
6 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 40002929
Your best option is using FTP to transfer the log file in "text" format to Windows where you can do with it whatever you want.

AIX runs the FTP server process by default, and Windows comes with an FTP command line client.

Alternatively you can install a GUI client for FTP, like WinSCP, and use this one to transfer the log.

If you have SSH on AIX and PuTTY on Windows you can install and use pscp or psftp which are part of the PuTTY suite.

If you're using PuTTY and really want to go with copy-and-paste adjust the number of scrollback lines for your PuTTY window to a size big enough to hold the whole file in the scrollback buffer, then copy and paste.

Why not view the file in AIX? Use

more filename.log

Now you can page backward and forward as you like, and you can search for strings. Once you're in "more" type "h" to see the relevant subcommands.
0
 

Author Comment

by:tonydba
ID: 40003029
not just to view copy the entire content in a notepad
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 40003097
if yo transfer the log file from the aix server to windows as text, then you can open the text file with notepad
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 16

Accepted Solution

by:
Wasim Akram Shaik earned 500 total points
ID: 40003264
Based on my experience with the author , I am posting a link to the site which has steps to do so

If you want to copy the file in windows and open up in notepad use this

http://www.compshack.com/linuxunix/ftp-file-windows-unix-server

If you are using a linux system then use this

http://aruljohn.com/info/filetransfer/

Note: I am not saying anything different than What experts woolmilkproc and omarfarid had suggested, just pointing you to the detailed steps
0
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 40296588
Connect to your AIX machine using PuTTY and set #lines of scrollback to 20000 in the window configuration. cat the whole logfile, then choose 'Copy all to clipboard' and paste the log where you need it (in essence what WMP said above, only with the 'Copy all to Clipboard' added).
0
 

Author Closing Comment

by:tonydba
ID: 40381248
Yes the ftp helped to resolve.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question