Thanks
cmf1985, for the script.
I run your script on a directory containing the following files:
Quote:
1265198625.P6233Q0M875762.ecs,S=639:2,F
1265198625.P6233Q0M875762.ecs,S=639:2,FS
1265198625.P6233Q0M875762.ecs,S=639:2,S
1265199975.P6583Q0M174865.ecs,S=623:2,
1265199975.P6583Q0M174865.ecs,S=623:2,F
1265199975.P6583Q0M174865.ecs,S=623:2,S
1265201980.P7044Q0M234565.ecs,S=623:2,S
1265201997.P7058Q0M121781.ecs,S=639:2,S
1265202446.P7209Q0M203877.ecs,S=623:2,S
1265202446.P7209Q1M203877.ecs,S=623:2,S
1265202446.P7209Q2M203877.ecs,S=623:2,S
1265202446.P7209Q3M203877.ecs,S=623:2,S
1265202957.P7339Q0M799626.ecs,S=639:2,F
1265202957.P7339Q1M799626.ecs,S=639:2,S
1265202957.P7339Q2M799626.ecs,S=639:2,
1265202957.P7339Q3M799626.ecs,S=639:2,S
I got the following output:
Quote:
1265198625.P6233Q0M875762.ecs,S=639:2,S
1265198625.P6233Q0M875762.ecs,S=639:2,FS
1265199975.P6583Q0M174865.ecs,S=623:2,S
1265199975.P6583Q0M174865.ecs,S=623:2,F
However,As you can see for the folowing group it didn't work:
1265202446.P7209Q1M203877.ecs,S=623:2,S
1265202446.P7209Q2M203877.ecs,S=623:2,S
1265202446.P7209Q3M203877.ecs,S=623:2,S
---------- Post updated at 02:22 PM ---------- Previous update was at 12:23 PM ----------
It is not working as expected
I found another problem when i run the script (red+green):
On mail server i have the following email files (output of #ls -ltc):
Quote:
-rw------- 1 vmail mail 1019 2010-02-04 11:54 1265269890.P4829Q0M586604.ecs,S=1019:2,S
-rw------- 1 vmail mail 619 2010-02-04 11:53 1265269831.P4792Q0M213777.ecs,S=619:2,S
-rw------- 1 vmail mail 645 2010-02-04 11:52 1265269852.P4803Q0M751985.ecs,S=645:2,S
On backup server i have the following email files (output of #ls -ltc):
Quote:
-rw------- 1 500 mail 619 2010-02-04 11:55 1265269831.P4792Q0M213777.ecs,S=619:2,S
-rw------- 1 500 mail 1019 2010-02-04 11:55 1265269890.P4829Q0M586604.ecs,S=1019:2,FS
-rw------- 1 500 mail 645 2010-02-04 11:54 1265269852.P4803Q0M751985.ecs,S=645:2,S
-rw------- 1 500 mail 619 2010-02-04 11:53 1265269831.P4792Q0M213777.ecs,S=619:2,F
-rw------- 1 500 mail 1019 2010-02-04 11:53 1265269890.P4829Q0M586604.ecs,S=1019:2,S
-rw------- 1 500 mail 619 2010-02-04 11:52 1265269831.P4792Q0M213777.ecs,S=619:2,
-rw------- 1 500 mail 645 2010-02-04 11:52 1265269852.P4803Q0M751985.ecs,S=645:2,
After running the script on the backup server:
Quote:
1265269831.P4792Q0M213777.ecs,S=619:2,S
1265269831.P4792Q0M213777.ecs,S=619:2,F
1265269852.P4803Q0M751985.ecs,S=645:2,S
1265269890.P4829Q0M586604.ecs,S=1019:2,S
The script must keep the 3 files (which are
both on the mail server & the backup server)
and delete the rest from the backup server.
But I think the prob is associated with
timestamps of the files.
Please advise.Thanks.