Search Results

Search: Posts Made By: amazigh42
1,093
Posted By amazigh42
I mentioned it. This is Mageia based Mandriva
I mentioned it.
This is Mageia based Mandriva
1,093
Posted By amazigh42
[Crontab] didn't work
Hello,

Here is my crontab
# Reboot one Sunday out of 2 at 02:00
0 2 * * 0/2 /usr/bin/reboot
2017-04-16
2017-04-23
2017-04-30
and so on

I tested my crontab here, it seems to work...
1,017
Posted By amazigh42
[e-mailing] send login pwd to several users
Hello,
I would like to send logins and passwords to users.
As input I have a file where there are the login, passwords and email addresses.

Can you help me because I'm not a good scripter...
1,079
Posted By amazigh42
Thanks a lot :) it works with a space. ll...
Thanks a lot :) it works with a space.
ll $log_nameI' obtain now :
-rw-r--r-- 1 xxxx xxxxx 4909630 Jul 30 15:09 server.log
-rw-r--r-- 1 xxxx xxxxx 7445243 Jul 29 23:59...
1,079
Posted By amazigh42
Thank you for your help. I'm going to explain...
Thank you for your help.
I'm going to explain my aim

In my directory, it may be that there is this
ll
-rw-r--r-- 1 xxxx xxxxx 4909630 Jul 30 15:09 server.log
-rw-r--r-- 1 xxxx xxxxx ...
1,079
Posted By amazigh42
Pattern matching notation
Hello

I have two kinds of logs like

server.logserver.log.2013-07-27.001i want to create a variable which look like this (with a pipe)
log_name=server.(log|log.$YYYY-MM-DD.[0-9][0-9][0-9])But i...
2,499
Posted By amazigh42
Hello, I have to deal with several archives...
Hello,

I have to deal with several archives in different servers, it is quite restrictive.
It forces me to decompress and compress the file again because it is an archive directory. Is there a...
2,499
Posted By amazigh42
Hello, Sorry for my late reply, I just returned...
Hello,
Sorry for my late reply, I just returned from vacation.

Inside there is one or several tar's files.

gunzip xxxx.gzll
xxxx.tar

Thank you

---------- Post updated at 10:39 AM...
2,499
Posted By amazigh42
[zcat] [gunzip -c] header
Hello,

When i lauches this command
ssh -n server_name gunzip -c "/REP/xxxx.gz" > server.logThere are a few stray characters like NULNULNULNUL100644 NUL000000NUL000000NUL00024002704 12135060747...
1,952
Posted By amazigh42
Hello, I would like to have confirmation. ...
Hello,

I would like to have confirmation.

$z_cat $log_name |awk -F"[/ \\\][]" -v S="24/01/2013 10:10" -v E="24/01/2013 10:30" '
function dcmp(b) {
if($4>b[3])return 1;In $log_name I have...
1,952
Posted By amazigh42
Hello, I thought I understood the magenta...
Hello,
I thought I understood the magenta pattern but not.

I have understood this line with the commande echo

$z_cat $log_name |awk -F"[/ \\\][]" -v S="24/01/2013 10:10" -v E="24/01/2013...
1,573
Posted By amazigh42
Thanks a lot, it's working. This site should be...
Thanks a lot, it's working.
This site should be reimbursed by social insurance. :D
1,573
Posted By amazigh42
Thanks, I'll test it later, i'm on holiday, i 'll...
Thanks, I'll test it later, i'm on holiday, i 'll come back at april 3.

Have a nice week-end.
1,573
Posted By amazigh42
Hello, Thanks for your help. Imagine i...
Hello,
Thanks for your help.

Imagine i have several files with these forms :
exploitation_ora.log.2013-03-28.001
server.log.2013-03-28.tar.gz
After creating variables, i have this :...
1,573
Posted By amazigh42
I may be poorly explained my problem. ...
I may be poorly explained my problem.

$type[?????].log.$date.*What should I put in place ????? equivalent to these two proposals below.
$type_$instance.log.$date.001$type.log.$date.tar.gz
1,573
Posted By amazigh42
Pattern matching notation
Hello,

I want to simplify two commands into one.
1st command
$type_log_$instance.log.$date.0012nd command
$type_log.log.$date.tar.gzInto blue brackets, How do I do to replace the pattern by a...
1,952
Posted By amazigh42
Parsing and timestamp a pattern in log
Hello

Thanks to Chubler_XL and MadeInGermany for their help few weeks ago.
Now, i would like modifying the script, see the next POST.

The old script works like that :
I picked any random...
1,825
Posted By amazigh42
Thank you for yours advices. But look with this...
Thank you for yours advices.
But look with this magenta pattern. it doesn't work.
Have you an idea why ?

#!/bin/bash
#########################################################################...
1,825
Posted By amazigh42
In magenta #!/bin/bash ...
In magenta

#!/bin/bash
#########################################################################
valid() {
case "$1" in
[E,F,Q,P][A,C,S][A,I,V,P][D,R,T,V]) ;;
*) return 1 ;;
...
1,825
Posted By amazigh42
I have forgotten the zero, i meant ...
I have forgotten the zero, i meant
IS0[1-8]ORABut the matching doesn't work ?

Thanks for your help.
1,825
Posted By amazigh42
Pattern matching notation
Hello,

I want to match this patterns
IS01ORA
IS02ORA
...
...
IS08ORA

With that :

IS[1-8]ORA
But it doesn't work, can you correct it ?

Thanks
2,748
Posted By amazigh42
Hello, Sorry, this is an unfortunate...
Hello,

Sorry, this is an unfortunate copy-paste.
It's OK now :D

Have a nice day.

#!/bin/bash
#########################################################################
valid() {
case "$1"...
2,748
Posted By amazigh42
Hello, Sorry, I don't speak fluent English and...
Hello,
Sorry, I don't speak fluent English and I don't understand all the idiomatic forms. I don't quite understand your suggestions.
But i tried that.

Thank you in advance.

process() {
...
2,748
Posted By amazigh42
Hello, Thanks for yours explainations. I...
Hello,
Thanks for yours explainations.

I have another question if you have some time.
I tried that ie put the arguments after the command
./ my_script QCVD UPG8 22 16 server 2013-01-24 What...
2,748
Posted By amazigh42
Hello, I try to understand your method. This...
Hello,
I try to understand your method.
This is why I added other cases.
But the script returns an error on a line that has good parameters.
Please, can you explain why ?
Another question :
The...
Showing results 1 to 25 of 80

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