transfer
Transfer files between UNIX machines using nc.
Description
Simple shell script help transfer files from one machine to another remote machine. Note that this script requires BSD netcat!
This utility is handy for transferring file to machines on same / different networks.
Usage
On sender side
$ transfer -Tf file -h hostname -p portor without defining port (Defaults to 1313)
$ transfer -Tf file -h hostnameOn receiver side
$ transfer -Rf file -p portor without defining port (Defaults to 1313)
$ transfer -Rf file===
Other usage
Version of transfer
$ ./transfer -v
Transfer v.1.0 by PrankyMat Feb-20-2015Install
transfer is a shell executable and is ready to run out of the box.
To start, first clone this repository:
$ git clone https://github.com/prankymat/transfer.git # clone this repoThen navigate to transfer's root directory using cd:
$ cd transfer/transfer is now ready to use!
$ ./transfer -Tf file -h hostname # will transmit file to hostname through port 1313Optionally you can move transfer to /bin/ or ~/bin/
If you wish to access transfer in different directories,
you can move transfer to /bin/ or ~/bin/
$ mv transfer /bin/transfer$ mv transfer ~/bin/transferAfter moving transfer to /bin/ or ~/bin/ you can simply invoke transfer anywhere.
$ transfer ./transfer -Tf file -h hostname # no more annoying './' :)Troubleshooting
You may encounter error when using ./transfer in your bash, here are some possible solutions:
Permission denied when calling ./transfer
Symptom
$ ./transfer
-bash: ./t: Permission deniedPossible solution
Add permission to execute transfer
$ chmod +x transfer$ sudo chmod +x transfer===
Permission denined when transmitting file
Symptom
$ ./transfer -Tf file -h host
./transfer: line 95: file: Permission deniedPossible solution
Sudo transfer
$ sudo ./transfer -Tf file -h host===
Contribution
Please provide any feedback at the issue page of this repo. Thanks!