Search Results

Search: Posts Made By: Ophiuchus
6,749
Posted By Ophiuchus
Thanks MadeInGermany. Thats is the issue....
Thanks MadeInGermany.

Thats is the issue. Some process creates the file with date of 1 day ago but is created or modified in all cases the nex day.

This is for the last 5 file

# ls -lc |...
6,749
Posted By Ophiuchus
Hello again, The cron job was set to 06 am...
Hello again,

The cron job was set to 06 am but the file wasn't copied again and cronlog.err says this:


cat /path/to/cronlog.err
sshpass -p 'ThePassword' scp -r...
6,749
Posted By Ophiuchus
Thanks for your answer Don. On SunOS server...
Thanks for your answer Don.

On SunOS server where I copy the files from the uptime command gives this output.

# uptime
4:28pm up 839 day(s), 5:42, 1 user, load average: 0.08, 0.07, 0.07
6,749
Posted By Ophiuchus
Hi RudyC. Yes, I've added set -vx. So I'll need...
Hi RudyC. Yes, I've added set -vx. So I'll need to check by tommorow what appears in those logs. Thanks for the help.

--- Post updated at 02:41 PM ---


Thanks for your suggestions, but since I...
6,749
Posted By Ophiuchus
Hi Don, Thanks for your answer. For now...
Hi Don,

Thanks for your answer.

For now with the help of bukuni and RudiC I've set the cron in this way

# crontab -l
0 6 * * * /path/to/scripts/script1.sh > /root/CronLog/cronlog.log 2>...
6,749
Posted By Ophiuchus
Hi to all, Thanks for your answers. ...
Hi to all,

Thanks for your answers.

IMHO the issue is not the expansion of the variable because it worked at 11:10 but not at 06:00 and the script1.sh is the same.

The files to be copied...
6,749
Posted By Ophiuchus
How to detect and fix why crontab job is not executed?
I have set several cron jobs. I recently added a new cron job that copies a file of last day from another server and is executed each day (for example at 04:00 am) but when I check next day the file...
1,186
Posted By Ophiuchus
Hi RudiC, Thanks for answer. I'm using...
Hi RudiC,

Thanks for answer.

I'm using bash in Cygwin under Windows. I have access to awk and gawk.

The input file shows coordinates and sizes of some regions within an image. I skip the...
1,186
Posted By Ophiuchus
Generate sorted awk array for further processing
Hello to all,

I have and input file like this:

Objects (id: bounding-box centroid area mean-color):
0: 800x800+0+0 406.6,390.9 378792 srgb(0,0,0)
11: 240x151+140+624 259.5,699.0 36240...
6,342
Posted By Ophiuchus
How can I say. It works just exactly as I was...
How can I say. It works just exactly as I was looking for.

I tested changing the "delete array[i]" sentences to outside for loop as "delete array" and it works too.

Many thanks for your help...
6,342
Posted By Ophiuchus
Hi Don, 1) The output I show for sample 2 is...
Hi Don,

1) The output I show for sample 2 is my desired output for sample file 2, written/edited manually by me not by any other code(I don´t have more codes :) ).
2) Yes, input file in post #1...
6,342
Posted By Ophiuchus
Actually <STR_VAL> and <PRO_VAL> goes after...
Actually <STR_VAL> and <PRO_VAL> goes after <ValueRange>/<ODRange>. In first sample STR_VAL appears before for the same reason as explain that was a not too representative sample. :(


All the...
6,342
Posted By Ophiuchus
Hi stomp, thanks for your answer and suggestion....
Hi stomp, thanks for your answer and suggestion. I'll have in mind this xml tool, but for now I think I close to get the output desired with awk.

---------- Post updated at 11:05 PM ----------...
6,342
Posted By Ophiuchus
Extract values from xml file script
Hi, please help on this. I want extract values of xml file structure and print in determined way.

<ProjectName> --> only appears once
<StructList> --> is the top node
<Struct> node --> could...
1,551
Posted By Ophiuchus
Excellent. Thanks for the explanation. ...
Excellent. Thanks for the explanation.

---------- Post updated at 02:30 AM ---------- Previous update was at 02:28 AM ----------


Hi Scrutinizer, Thanks for the tip. I did it in that way and...
1,551
Posted By Ophiuchus
Thanks again RudiC. It works with the sample file...
Thanks again RudiC. It works with the sample file but as you said different results could be obtained. Trying other input the output is not correct for some values of 4 last columns, but I understand...
1,551
Posted By Ophiuchus
Hello Scrutinizer and RudiC, Thanks for the...
Hello Scrutinizer and RudiC,

Thanks for the help. I noticed something I didn't considered. If I want to pass the output for example to Excel and I say the delimiter is space, the values for VLL,...
1,551
Posted By Ophiuchus
Organize output with awk
Hello, maybe someone could help me with this.

I'm trying to print in a more ordered way this input.

the input file is:

AB XY UT ZW PRAT
0 3 ...
1,569
Posted By Ophiuchus
Excellent ChublerXL. Thanks for the lesson,...
Excellent ChublerXL. Thanks for the lesson, specially that comes from someone that knows a lot. I'll play a little bit with this example of arrays.

Thanks to all.
1,569
Posted By Ophiuchus
Excellent rdrtx1 for yout solution and Chubler_XL...
Excellent rdrtx1 for yout solution and Chubler_XL for the modification. With both solution it seems to work pretty nice even when in real file the strings have leading spaces.

Chubler_XL,

I see...
1,569
Posted By Ophiuchus
The duplicated fields within a record should be...
The duplicated fields within a record should be printed in different lines in the output. In the output, the records that don't have fields repeated only have one line.

See below output (lines in...
1,569
Posted By Ophiuchus
I'm surprised when an awk script is written in...
I'm surprised when an awk script is written in that way, I almost don't understan the logic to customize it.

The record initiator will be always the line STAGE = 1
The Record terminator will be...
1,569
Posted By Ophiuchus
Thanks so much RudiC. Clear the variables...
Thanks so much RudiC.

Clear the variables was the key!

In this case there are 11 headers, but if there are N headers for which I want to get the value in $3, how would be a way to make a...
1,569
Posted By Ophiuchus
Help tabulating file putting repeated strings as headers
Hi. May somebody help me with this.

I´m trying to tabulate the following input file, but the desired output I´m getting is incorrect.

I have access to GNU/LINUX (Ubuntu) and Cygwin

Input...
4,808
Posted By Ophiuchus
Hi RudiC, Thank you. I discovered why...
Hi RudiC,

Thank you.

I discovered why the output differs. The line ending of the file is CRLF since I´m working on Windows. I changed the line ending to LF and the output is the same as yours.
Showing results 1 to 25 of 304

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