Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nolim1t/ftp-filedrop

Quick script for dropping files into a FTP folder
https://github.com/nolim1t/ftp-filedrop

Last synced: 2 days ago
JSON representation

Quick script for dropping files into a FTP folder

Awesome Lists containing this project

README

        

ftp-filedrop
============

Quick script for dropping files into a FTP folder

Usage
---------------------
### Dropping a file into the folder

**Limitation** It needs an extension for now

```bash
export ftpserver='hostname' ; export user='username' ; export pass='Password' ; export file='originalfilename.ext' ; export dir='/dest/filepath'; ./drop.rb
```

### Getting a list only

```bash
export ftpserver='hostname' ; export user='username' ; export pass='Password' ; export file='listonly' ; export dir='/dest/filepath'; ./drop.rb
```

### Dropping a file while specifying a destination

```bash
export ftpserver='hostname' ; export user='username' ; export pass='Password' ; export file='originalfilename.ext' ; export dir='/dest/filepath'; export destfile='destfilename.ext' ; ./drop.rb
```