Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

its an emergency , plzzzz zz

mjjmjj Member Posts: 9
there r to scripts tht i need by friday.
1 ) there's a linux server , with windows client. a message is to be broadcasted frm server to clients , everyday by 8:pm
2)The objective of my system is to have a unified filebase system. I am using RSync to synchronise files between the location & central server with both of them having the same folder structure. The flow of RSync being from location server to central server. Now while I am running RSync I need to find the files that have been deleted in the location server, identify those files in the central server and then move those files to "To be deleted" folder in the central server.
if ne 1 of u can help me with these, wuld b gr8 help
rgds,
mj

Comments

  • ITAITA Member Posts: 463
    : there r to scripts tht i need by friday.
    : 1 ) there's a linux server , with windows client. a message is to be :broadcasted frm server to clients , everyday by 8:pm

    You can do this with a cron job.

    : 2)The objective of my system is to have a unified filebase system. I :am using RSync to synchronise files between the location & central :server with both of them having the same folder structure. The flow of :RSync being from location server to central server. Now while I am :running RSync I need to find the files that have been deleted in the :location server, identify those files in the central server and then :move those files to "To be deleted" folder in the central server.

    For this you could do something like ls foldername in the location server and then an ls in the central server, then use diff to compare the differences between the output. The differences will obviously be the files to be deleted, so you just move those files using the mv command to the 'to be deleted folder'.

    You might want to use something like grep and awk to parse the output of diff.

    That's how I would do it off the top of my head.

    Regards,

    ITA
    "Let us smite the evil slime eating hordes who may befall us on our quest to be the ultimate programmers of the known universe!"

Sign In or Register to comment.