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/*
[email protected]:/home/data1 && rm -r /home/data/*
That script did the copy, but not remove the source file.
I already read this question:
Hov 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?