05-19-2012
Quote:
Originally Posted by
aashish.sharma8
tail -f is the best option.Please tell what exactly is your requirement ?
Hi ,
As the logs get updated and also in Putty they are getting updated what about if at later state I want to check the first initial 10 lines of log file(abc.log) or mid 10 lines as on putty the latest logs will be get displayed..!!
10 More Discussions You Might Find Interesting
1. News, Links, Events and Announcements
On my opinion, one of the best ssh/telnet clients for windows, putty released a new version:
Get it here, PuTTY 0.59
- PuTTY can now connect to local serial ports as well as making network connections.
- Improved speed of SSH, particularly SSH-2 key exchange and public-key authentication
-... (2 Replies)
Discussion started by: pressy
2 Replies
2. UNIX for Dummies Questions & Answers
i am connecting to a unix-application using putty (xp).
sometime, it is as if the putty is sending a form-feed char, because i am getting a blank screen, and by back scrolling i see the previous screen
with all the related data.
if i am using the xp-telnet, i get the screen/data correctly.
... (7 Replies)
Discussion started by: mifa-system
7 Replies
3. Shell Programming and Scripting
Hi,
I am trying to write a script which would go search and get the info from the logs based on yesterday timestamp and write yesterday logs in new file. The log file format is as follows:
""""""""""""""""""""""""""... (3 Replies)
Discussion started by: harish.parker
3 Replies
4. UNIX for Dummies Questions & Answers
i was having problem on unix command.here's my script
set server_exe="C:\filecopy\putty.exe"
%server_exe% sgxaspecs3@sporc01 -pw pit54321 -b c:\filecopy\file_sporc01putfiles2.txt
echo "file uploaded to SFTP Server"
pause
ok the thing is like this, i could login to putty by running this... (1 Reply)
Discussion started by: dannyd_y
1 Replies
5. Windows & DOS: Issues & Discussions
Hi all,
need info on using putty as group.
I am having huge numbers of servers. (say 100)
I am using putty to login remotely. i want to group each 25 hostnames or a set of servers into one putty instance. (see image attached.)
Currently i have to scroll down to see all the 100 servers.
... (2 Replies)
Discussion started by: karthikn7974
2 Replies
6. UNIX for Advanced & Expert Users
I'm using PuTTY to establish a SSH connection to a remote UNIX machine. I need to fetch a file from the remote system into my local Windows system.
Is it possible? If yes, how can I do that? (2 Replies)
Discussion started by: agnivaccent
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I want to know how we can view two or three logs which are dynamically getting updated from a single/same putty window with tail commnad.
Thanks. (7 Replies)
Discussion started by: reachsudha
7 Replies
8. UNIX for Dummies Questions & Answers
Hi Folks,
I have an application and I connect to unix box through putty , sometimes I Have to check the logs and for that I reached to particular directory and write
tail -f abc.log
Is there any better command so that these logs are dynamically go on increasing while I work on my application... (6 Replies)
Discussion started by: KAREENA18
6 Replies
9. UNIX for Dummies Questions & Answers
Hello Forum members
There is no any time parameter on putty so how can I stay my putty ssh session always Alive? So please reply to my querry. I am looking forward from Forum.
Advance Thanks
Siva. (5 Replies)
Discussion started by: workforsiva
5 Replies
10. Shell Programming and Scripting
Appreciate help for the below issue.
Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt..............
1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies
LEARN ABOUT CENTOS
nislog
nislog(1M) System Administration Commands nislog(1M)
NAME
nislog - display the contents of the NIS+ transaction log
SYNOPSIS
/usr/sbin/nislog [-h num | -t num] [-v] [directory...]
DESCRIPTION
nislog displays the contents of the NIS+ server transaction log on the standard output. This command can be used to track changes in the
namespace. The /var/nis/trans.log file contains the transaction log maintained by the NIS+ server. When updates occur, they are logged to
this file and then propagated to replicas as log transactions. When the log is checkpointed, updates that have been propagated to the
replicas are removed.
The nislog command can only be run on an NIS+ server by superuser. It displays the log entries for that server only.
If directory is not specified, the entire log is searched. Otherwise, only those logs entries that correspond to the specified directories
are displayed.
OPTIONS
-h num Display num transactions from the ``head'' of the log. If the numeric parameter is 0, only the log header is displayed.
-t num Display num transactions from the ``tail'' of the log. If the numeric parameter is 0, only the log header is displayed.
-v Verbose mode.
FILES
/var/nis/trans.log transaction log
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO
nis+(1), rpc.nisd(1M), nisfiles(4), attributes(5)
NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are
available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.10 12 Dec 2001 nislog(1M)