In my office, i have to schedule for moving a file from one computer to other computer (Both are using Elastix).
My idea is using cron, scp, and rm to do this. So here are the script that i use:
scp -r /home/data/* root@192.168.1.2:/home/data1 && rm -r /home/data/*
That script did the copy, but not remove the source file.
I already read this question: How to _MOVE_ files with scp?
The problem is, the computer doesn't have an internet connection. So i cannot install rsync on my elastix computer.
yum install rsync
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
and then it freezes.
Any idea how to do this?
read only file system, i cannot make any directory on the other server. – yudayyy Jul 05 '12 at 10:26mount -o remount,rw /(this would be for the root filesystem). But you should also try to find out why it's mounted read only and remove that cause, because after a reboot it's likely to be back read only. – Isaac Jul 05 '12 at 11:10