Search Results

Search: Posts Made By: jackcracker
2,024
Posted By jackcracker
Hi, thanks, this works now. I can do it with...
Hi,
thanks, this works now.
I can do it with two commands in my script ...
1.

MYFILE=`ls -lrt daily_test*|awk '{print $NF}'|tail -1` && gunzip ${MYFILE}


2.

MYFILE=`ls -lrt...
2,024
Posted By jackcracker
Hi, so when I try MYFILE='ls -lrt...
Hi,

so when I try

MYFILE='ls -lrt daily_test*|awk '{print $NF}'|tail -1'

then I´ll get error message:

If '}|tail -1' is not a typo you can run the following command to lookup the package...
2,024
Posted By jackcracker
Hi, thanks for your reply ... ls -lrt...
Hi,
thanks for your reply ...

ls -lrt daily_test_*.sql.gz|awk '{print $NF}'|tail -1

gives the right file back, but how can I get this in command to unzip it, in my script ?

The script...
2,024
Posted By jackcracker
Need Help with automatically Import from special mysqldump
Hi @ all
I need a little bit help with a tricky problem ...
Here´s the situation:

We´ve 2 MySQL-Servers, one is productive, the other is Backup.

At the productive Server there runs every 2...
Forum: SuSE 09-12-2012
3,088
Posted By jackcracker
Hi, here´s the full conf-file
Hi,

here´s the full conf-file
Forum: SuSE 09-12-2012
3,088
Posted By jackcracker
Hi, thanks a lot for this ... it works, for the...
Hi,
thanks a lot for this ... it works, for the "publickey"-messages .- they´ll be filtered out,
but unfortunately the syslog-status-messages will not be forwarded to the Log-Server.
Do you have...
Forum: SuSE 09-11-2012
3,088
Posted By jackcracker
another time help with syslog-ng
Hi @ all,
there´s another problem which I have with syslog-ng, perhaps somebody have a solution:
We´ve a server which sent his messages-log to another Server - worked well with ... destination...
Forum: SuSE 06-16-2011
5,084
Posted By jackcracker
in /etc/syslog-ng/syslog-ng.conf ... there´s a...
in /etc/syslog-ng/syslog-ng.conf ...
there´s a line with " filter f_messages ... "
Forum: SuSE 06-16-2011
5,084
Posted By jackcracker
solved
Hi,
I solved it at this way:

I added the red highlited text in the syslog-ng.conf at the filter for "messages" and together with the entry that messages with imap should go in another logfile,...
Forum: SuSE 06-15-2011
5,084
Posted By jackcracker
syslog-ng - dont log specific entries
Hi @ all,

I´ve a short question, perhaps somebody could help me ...

How can I configure syslog-ng either not to log specific entries in messages or write them into another file ...
...
2,625
Posted By jackcracker
This worked ... many thanks. Regards
This worked ... many thanks.
Regards
2,625
Posted By jackcracker
Help with script and grep the last date
Hi Guys,

I´ve a little question, perhaps somebody can help or have a hint for me ...

Here´s my problem:
We´ve a server which do at night an update of his virus-pattern, in /var/log/messages...
Forum: SuSE 06-28-2010
2,294
Posted By jackcracker
How to log Installation-Activity ??
Hi @ All,

short question:
i want to log my cpan Installation in a text-File.
My first try was
cpan -i module | tee /home/install.txt

but this don´t logs my inputs, eg. what i typed in...
Forum: Linux 06-21-2010
1,652
Posted By jackcracker
works - thanks
works - thanks
Forum: Linux 06-21-2010
1,652
Posted By jackcracker
short question about cron and Mailoutput
Hi Guys,

short question -
there´s every 5 minutes an cronjob for user "wwwrun" - and every 5 minutes root gets an email about this cronjob.

Now my question:
how can i realize, that root...
Forum: Linux 06-17-2010
1,527
Posted By jackcracker
Help with Apache and ReversProxy
Hi @ all,
i´ve a little question and hope, somebody could help me.

We´ve an Webserver running on SLES10 which is actually running only as an ftp-Server.
Now this Server should be used as...
3,365
Posted By jackcracker
formating means, that the mail should like this: ...
formating means, that the mail should like this:


Sun Sep 27 21:30:01 CEST 2009
Script Scriptname
Script1 was read - Success
Script2 was read - Success
Script3 was read - Success
Script4...
3,365
Posted By jackcracker
... this worked also, but i get the mail...
... this worked also, but i get the mail unformatted, too

Do i have a chance to format it?
3,365
Posted By jackcracker
grep -n $(date +"%b %d") /var/log/scriptlog.log ...
grep -n $(date +"%b %d") /var/log/scriptlog.log


gives result:
grep: 28: No such file or directory
/var/log/scriptlog.log:1:Wed Sep 23 21:30:01 CEST 2009
/var/log/scriptlog.log:10:Thu Sep 24...
3,365
Posted By jackcracker
ok, here´s my result: grep -n $(date +"%b")...
ok, here´s my result:

grep -n $(date +"%b") /var/log/scriptlog.log
gives

1:Wed Sep 23 21:30:01 CEST 2009
10:Thu Sep 24 14:24:02 CEST 2009
19:Thu Sep 24 21:30:01 CEST 2009

and

grep...
3,365
Posted By jackcracker
i tried now following - in my logfile there...
i tried now following -
in my logfile there are only 3 entry´s:


Wed Sep 23 21:30:01 CEST 2009
Script Name
Script1 was read - Success
Script2 was read - Success
Script3 was read - Success...
3,365
Posted By jackcracker
... yes, -a is for attachment (man mail) ...
... yes, -a is for attachment (man mail)

ok, then i´ll try the complicated method,
but how must the complete syntax be?


tail -$(grep -n date +"%d %b" /var/log/scriptlog.log | head -1...
3,365
Posted By jackcracker
I think this is very complicated ... i think...
I think this is very complicated ...
i think it´s better to leave the first version:


tail -n 10 /var/log/scriptlog.log > /tmp/error && mail -s 'Errors' root < /tmp/error


Then it´s...
3,365
Posted By jackcracker
[quote=chakrapani;302356280]Could you explain...
[quote=chakrapani;302356280]Could you explain more on this if you want a mail of the log or last line from the log

Here´s are the last lines of my log-file:

...
...
......
3,365
Posted By jackcracker
Help with Scriptoutput and mailing the log
Hi Guys,

i´ve oncemore a little question, hope somebody can help me.

Here´s my "problem":
I´ve running a script via cron every evening at 21:30 - this script
reads 5 xml-Files and output...
Showing results 1 to 25 of 30

 
All times are GMT -4. The time now is 05:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy