10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Discussion started by: weesiong
3 Replies
2. UNIX for Dummies Questions & Answers
Hello All !
I need your help on this case,
I have a csv file with this:
ITEM105;ARI FSR;2016-02-01 08:02;243
ITEM101;ARI FSR;2016-02-01 06:02;240
ITEM032;RNO TLE;2016-02-01 11:03;320
ITEM032;RNO TLE;2016-02-02 05:43;320
ITEM032;RNO TLE;2016-02-01 02:03;320
ITEM032;RNO... (2 Replies)
Discussion started by: vadim-bzh
2 Replies
3. Shell Programming and Scripting
ENVIROMENT
Linux: RHEL 6.4
Log Path: /usr/iplanet/servers/https-company/logs
Log Format: user.log.03-15-2015
I have log4j log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I need a script that will run daily that... (1 Reply)
Discussion started by: admin_job_admin
1 Replies
4. Shell Programming and Scripting
Hi
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
total 0
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies
5. Shell Programming and Scripting
I want to use my script to get any file then delete it once it transfers to my side , I manage to create below script to generate "list" file which contains all file names in "10.10.1.1" then I made "a.out" file which contains the commands that I want to run it on "10.10.1.1" to get & delete the... (2 Replies)
Discussion started by: arm
2 Replies
6. Shell Programming and Scripting
Need to
1. archive all the files in a directory from the previous month into a tar/gz file, ignoring all already archived 'tar.gz' files
2. Check created .tar.gz file isnt corrupted and has all the required files in it. and then remove the original files.
I am using a function to get the... (1 Reply)
Discussion started by: Prev
1 Replies
7. Shell Programming and Scripting
Hi,
I am trying to write a shell script to delete logs generate by db when space in the folder reaches 70%. i am getting space values from db, find the files at OS and remove them by using a cron job runs every 5minutes.
I have to keep the latest 5 files at any time, my problem is that log files... (3 Replies)
Discussion started by: saha
3 Replies
8. Shell Programming and Scripting
Guys,
My log files stored in the date format format below(log_20080714072942):
TIMESTAMP=`date +%Y%m%d%H%M%S`
LOG=/log/log_${TIMESTAMP}.log
I'm looking for a shell script which deletes all files which is older than 3 months from today.
Regards,
Bhagat (3 Replies)
Discussion started by: bhagat.singh-j
3 Replies
9. UNIX for Advanced & Expert Users
My code is
tar -cvf logs.tar `find /usr/openv/logs/512*.log -mtime +2` && find *.log* -mtime +2 -exec rm {} \;
this gives me output as:
tar: Missing filenames:confused: (1 Reply)
Discussion started by: timus1980
1 Replies
10. Shell Programming and Scripting
Dear All,
I have text file like this:
Header
Record 1
Record 2
.......
Record n
Tail
This line of code :
awk '{ if ( NR == 1 ) { head=substr($0,1,300);} else { last = substr($0,1,300);}END{printf "Header is : %-300s Trailer is : %-300s\n", head, last}' filename
converted Header... (11 Replies)
Discussion started by: 33junaid
11 Replies
gnome-system-log(1) General Commands Manual gnome-system-log(1)
NAME
gnome-system-log - the GNOME System Log Viewer
SYNOPSIS
gnome-system-log
or select System Log from the System Tools submenu of the Applications menu.
DESCRIPTION
GNOME System Log Viewer is a simple utility to display system log files.
AUTHOR
The GNOME System Log Viewer was written by Cesar Miquel <miquel@df.uba.ar>.
GNOME System Log Viewer Plugin Interface was written by Lin Ma <lin.ma@sun.com>.
This manual page was written by Jochen Voss <voss@mathematik.uni-kl.de>.
Plugin Service Provider Interface (SPI)
We have provided an SPI for adding plugins into Gnome Log Viewer. The SPI mainly includes three parts:
I/O (LogviewIFaceIO)
This defines the main input interface. This is used by Log Viewer to read a logs content into memory, whether the logs source
is text or binary, the data returned here should be text - most likely in the current locale. It also provides methods to
allow the main application to get other information about the log such as whether the log has changed.
It's the reposibility of the plugin to maintain information about the log file(s) such as the current location in the file,
the size of the file, etc.
Views (LogviewIFaceView)
This interface defines a mechanism to enable the formatting of log data, dividing it into lines. The current implementation
defines how to group lines by date and the conversion of the log from the current locale to UTF-8.
Collectors (LogviewIFaceCollector)
This interface is used to gather the list of logs. New types of logs may be added using this interface.
For the detail information, please see /usr/share/gtk-doc/html/logview/index.html.
Plugin Priority
A priority list is maintained for each category of plugin - this defines the order in which plugins will be used - higher priority
plugins override lower priority plugins. Priorities are categorised as:
Priority 0-9: Used by the delivered default plugins
Priority 10+: End Users plugins.
Plugin Search Path
Log Viewer will search in the following directories for plugins:
$HOME/.gnome2/gnome-system-log/plugins/`uname -p`
/lib/gnome-system-log/plugins
Plugin Security
Both libgrablogs and libpipelog only recognize the configure file which has the same owner ship to the user, otherwise they will
back to the system default ones. In Solaris, they will use a fork/exec/pfsh to run the commands within the configure files; in
Linux, they will use popen(3).
Default Plugins
Three plugins are available for the end-users. They are libgrablogs.so, libplainlog.so and libpipelog.so.
FILES
/usr/lib/gnome-system-log/plugins/libgrablogs.so
A default plugin - collecting some log files from system. See grablogs.conf (4).
/usr/lib/gnome-system-log/plugins/libplainlog.so
A default plugin - view ASCII log files.
/usr/lib/gnome-system-log/plugins/libpipelog.so
A default plugin - has a higher priority than libplainlog.so, view the output of a command. See pipelog.conf (4).
/var/log/messages
The system's main logfile.
/etc/syslog.conf
Configuration file for syslogd. See syslog.conf(5) for exact information.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+----------------------------------+-----------------------------+
| ATTRIBUTE TYPE^ATTRIBUTE VALUE | |
+----------------------------------+-----------------------------+
|Availability^SUNWgnome-log-viewer | |
+----------------------------------+-----------------------------+
|Interface stability^GVolatile | |
+----------------------------------+-----------------------------+
SEE ALSO
syslogd(8), sysklogd(8), syslog.conf(5), syslogd-listfiles(8), grablogs.conf(4), pipelog.conf(4)
gnome-utils 2.16.0 Aug 09 2002 gnome-system-log(1)