10-26-2012
You can make a copy of the system logs in a space where you have space and write permissions, updating it periodicially using cpio or rsync, and test on that.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello, I need a smart sed command that can take any of the following two as an input and give below mentioned output. As you can see, I am trying to convert some C code
INPUT:
struct abc_sample1 {
char myString;
UINT16 myValue1;
... (2 Replies)
Discussion started by: SiftinDotCom
2 Replies
2. UNIX for Advanced & Expert Users
Hi,
I have written a script that runs every five minutes in cron schedular. The Operating system is Fedora core 9. This script generates 2 log files, these log file size is increasing as some log data is being dumped into these 2 log files every five minutes. I need to logrotate these 2 files.... (1 Reply)
Discussion started by: renuka
1 Replies
3. Shell Programming and Scripting
I need this script to be able to check both IPs that are given to it and exit with an OK... if one of those expected IPs is returned.
The script is run like this:
/bin/dns_checker.pl -s 69.34.55.66 -q htt.jababa.com -e 69.44.56.33,45.47.43.55
Right now, the script is failing, but when I... (4 Replies)
Discussion started by: SkySmart
4 Replies
4. Shell Programming and Scripting
Hi,
I am new to perl scripting.
Can anybody help me in solving the below problem.
I have file, which is called map_file. According to map_file's last column data, i need a output file, which has repeats as like the map_file's last column name.
Thank you in advance
Vasanth (5 Replies)
Discussion started by: vasanth.vadalur
5 Replies
5. Shell Programming and Scripting
For the following command I need a perl script equivalent with a couple of more things -
cat /tmp/mail |grep Appname > /tmp/mail1;cat /tmp/mail >> /tmp/mail1; mail -s "mail subject here" allan@mail.com < /tmp/mail1; >/tmp/mail ; >/tmp/mail1
==================
cat /tmp/mail
***** Alert *****... (4 Replies)
Discussion started by: jacki
4 Replies
6. Shell Programming and Scripting
Hi,
I wanted to know can a custom script can be made available to run in
postroate
endscript
something like
postrotate
./scriptpath/sh-script.sh
endscript
Is this the correct syntax, or it will require any modification?
Thanks in Advance.
Neeryan (1 Reply)
Discussion started by: Neeryan
1 Replies
7. Shell Programming and Scripting
I have 3 variables
$file =abc_2011_11_01.txt (current day file)
$back = Yes
$forward = No
I need to search for 3 days back files / 3 days forward files if my current file is not present
logic is,
I need to download the current day file.
If it is missing, i need to look out for... (1 Reply)
Discussion started by: irudayaraj
1 Replies
8. Shell Programming and Scripting
i have the following script:
#!/usr/local/bin/perl
use STUN::Client;
use Data::Dumper;
use strict;
my $stun_client = STUN::Client->new;
$stun_client->stun_server('10.59.29.14');
my $r = $stun_client->get;
my $ip = $r->{ma_address};
print "IP: $ip\n\nResult (hash):... (5 Replies)
Discussion started by: SkySmart
5 Replies
9. Debian
Hi,
Yesterday I installed and configured logrotate on my Debian machine. I was expecting this to run at 06:25 in the morning and it actually did. All my old logs were compressed and zipped but the new logs were all with size equal to 0 bytes. Processes, while still running ok, they were not... (2 Replies)
Discussion started by: pmatsinopoulos
2 Replies
10. Shell Programming and Scripting
I have written script which is working in Home directory perfectly and also compressing log files and rotating correctly. But, when i try to run script for /var/log/ i am able to get compressed log files but not able to get rotation of compressed log files. Please suggest.
I am using below command... (5 Replies)
Discussion started by: VSom007
5 Replies
LEARN ABOUT DEBIAN
basexserver
basexserver(1) The XML Database basexserver(1)
NAME
basexserver - XML database system and XPath/XQuery processor (server mode)
SYNOPSIS
basexserver [-cdeipSz] [stop]
DESCRIPTION
basexserver starts the server mode of the native XML database system basex(1) on default port 1984.
OPTIONS
A short description of option can be obtained from
$ basexserver -h
or by browsing http://docs.basex.org/wiki/Startup_Options#BaseX_Server
USER MANAGEMENT
On first startup a user 'admin' with default password 'admin' exists (make sure to change this)!
Admin permissions are needed to execute one of the following processes.
o Creating user 'test' with password 'test':
> CREATE USER test test
As global permissions valid options are 'none', 'read', 'write', 'create' and 'admin'.
o Revoking all global permissions from user 'test':
> GRANT none TO test
Valid local permissions are 'none', 'read' and 'write'.
o Granting write permission on database 'factbook' to user 'test':
> GRANT write ON factbook TO test
Note: Local permissions overwrite global permissions. As a consequence, the 'test' user will only be allowed to access (i.e., read and
write) the 'factbook' database. If no local permissions are set, the global rights are inherited.
o Showing global permissions:
> SHOW USERS
o Showing local permissions on database 'factbook':
> SHOW USERS ON factbook
o Dropping of user 'test':
> DROP USER test
Further details on user management are to be found in the BaseX Documentation Wiki (http://docs.basex.org/wiki/User_Management).
DATABASE COMMANDS
A list of supported Database commands can be obtained from
$ basexserver -ic help
or by browsing http://docs.basex.org/wiki/Commands
SEE ALSO
basexclient(1), basex(1), basexgui(1)
~/.basex
BaseX (standalone and server) properties
~/.basexgui
BaseX additional GUI properties
~/.basexperm
user name, passwords, and permissions
~/.basexevents
contains all existing events
~/BaseXData
Default database directory
~/BaseXData/.logs
Server logs
~/BaseXRepo
Package repository
BaseX Documentation Wiki: http://docs.basex.org
HISTORY
BaseX started as a research project of the Database and Information Systems Group (DBIS) at the University of Konstanz in 2005 and soon
turned into a feature-rich open source XML database and XPath/XQuery processor.
LICENSE
New (3-clause) BSD License
AUTHOR
BaseX is developed by a bunch of people called 'The BaseX Team' <http://basex.org/about-us/> led by Christian Gruen <cg@basex.org>.
The man page was written by Alexander Holupirek <alex@holupirek.de> while packaging BaseX for Debian GNU/Linux.
26 June 2012 basexserver(1)