Its been long time since i posted on my blog, i have been very busy at the new project. I recently came across a new unix utility called Netcat. Netcat allows you send and receive data across the machines using TCP/UDP Protocols.
For example if i need to tar an oracle home and and untar on the target server i can use the following commands
On Source
- cd $ORACLE_HOME
- tar cvf - * | netcat <TARGET host><SOME port>
On Target
- cd to destination ORACLE_HOME
- netcat -l -p <PORT source in used>| tar xvf -
References
- http://netcat.sourceforge.net/
- http://en.wikipedia.org/wiki/Netcat