Search Results

Search: Posts Made By: Lomic
8,903
Posted By Lomic
try with strptime() function ;) I don't find...
try with strptime() function ;)

I don't find samples to know how to use it...

I guess you should be able to do something like this:my_var=strptime("my_string","date format",tm)
I didn't...
8,903
Posted By Lomic
why are you focalizing on date format? you...
why are you focalizing on date format?

you may ask to the user to enter the date like this 20050301 as argument of the command ex:

your_script 20050301

after you can manage the date argument...
5,627
Posted By Lomic
yeah! it works fine, thanks! (I sed first to...
yeah! it works fine, thanks! (I sed first to erase '%' signs)
5,627
Posted By Lomic
[awk]: Row begins by random number and field 10 is greater than 10.00%
Hello!

I wish to extract the pid where CPU is above 10%
last pid: 22621; load averages: 4.71, 5.04, 5.13 ...
40,021
Posted By Lomic
No in fact I was wrong also lol, I thought it was...
No in fact I was wrong also lol, I thought it was day of the week "Mardi" for tuesday in french, but it is the month lol

so no problem anymore from this side

and for the moment I just count per...
40,021
Posted By Lomic
now let's push a little further :D how can...
now let's push a little further :D

how can I manage to have a loop which greps my expression for each minute of the day, between 0h00 and 23h59?

as I count the greps, each result of grep is a...
40,021
Posted By Lomic
thanks effigy, I tried something like that but I...
thanks effigy, I tried something like that but I forgot to escape characters ;)

Thu stands for Thursday, in fact there is three letters for each weekday at the beginning of the line ;)

Edit:...
40,021
Posted By Lomic
grep and wildcards
Hi guys,

a small problem today, I'm grepping a log file containing lines like this below:
Mar 09 16:04:00 blabla
Mar 09 16:04:02 blabla
Mar 09 16:04:05 blabla
Mar 09 16:04:15 blabla
Mar 09...
7
13,149
Posted By Lomic
ok it is fixed now, helped by a colleague, the...
ok it is fixed now, helped by a colleague, the trouble was that I mount using logical info instead of physical

the guy unmounted all the tree, even detach some dsk and then attach properly and at...
7
13,149
Posted By Lomic
now it is ok, no more processes running and...
now it is ok, no more processes running and nobody accessing /myrep

I tried:

mount -F lofs -o rw /myrep /my_image_rep

-> Device busy (but nothing in fuser or lsof)

I tried several ways...
6,165
Posted By Lomic
ok, and like this, is it ok for the allways...
ok, and like this, is it ok for the allways unknown start of the line (*) ?

and is it possible without trouble that infile=outfile?
6,165
Posted By Lomic
File before: xxxxxxxxxxx xxxxxxxxxxx blabla...
File before:
xxxxxxxxxxx
xxxxxxxxxxx
blabla 'toto' rep:/titi/toto/
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxx
blabla 'toto' rep:/titi/toto
/blabla 'toto' rep:/titi/toto/
xxxxxxxxxxx
blabla 'toto'...
6,165
Posted By Lomic
you're right, it is nearly ok now! (good step...
you're right, it is nearly ok now! (good step forward for me)

but one more question :)

it erase the lines, but it doesn't suppress them...

any hint?
7
13,149
Posted By Lomic
ok nothing I grepped on /myrep and...
ok

nothing

I grepped on /myrep and there are two java processes dealing with files among /myrep

If I understand correctly, I should manage to get rid of those processes in order to umount
...
6,165
Posted By Lomic
ok but my_pattern_has_special_chars looks...
ok but my_pattern_has_special_chars looks likeblabla 'toto' rep:/titi/toto/

so I protect it between #

if I understand what you mean, I should do like this::%s/^.*blabla\ \'toto\'\...
7
13,149
Posted By Lomic
thanx for your help, I tried to remount it with...
thanx for your help, I tried to remount it with no success it only answeredmount: /myrep/: Device busy

and for umounting it, it doesn't work but I do it like to umount a standard mount, not a...
6,165
Posted By Lomic
vi + regexp + substitute
Another enigma (for me)

Using VI I edit some files in which I want to erase many lines I don't need anymore

usually I do something like that::%s/line_to_suppress//g

and it is doing fine
...
7
13,149
Posted By Lomic
Lofs
Hi gang!

I've just tried to build a Loopback FS, and I used the option "ro" not knowing what it was meaning, as in the example I have for this feature...

mount -F lofs -o ro /my_rep...
12,068
Posted By Lomic
well it's me again, forget my questions, changes...
well it's me again, forget my questions, changes are ok now ;)
12,068
Posted By Lomic
Stop/Start proftpd
Hi everyone, I was wondering how to configure ftp access for one user when I found this board.

After some searches I found my infos around proftpd (and the great config file proftpd.conf who...
Showing results 1 to 20 of 20

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