https://github.com/worksofliam/db2get
Use DB2 to download files from the web
https://github.com/worksofliam/db2get
ibmi
Last synced: 5 months ago
JSON representation
Use DB2 to download files from the web
- Host: GitHub
- URL: https://github.com/worksofliam/db2get
- Owner: worksofliam
- Created: 2016-05-24T21:37:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T14:55:32.000Z (about 9 years ago)
- Last Synced: 2025-03-15T01:14:20.633Z (over 1 year ago)
- Topics: ibmi
- Language: Batchfile
- Size: 1.95 KB
- Stars: 4
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DB2GET
Use DB2 to download files from the web. This was made since I didn't have access to WGET or CURL on the system I use. It is used to download one file at a time.
## Build
You can build this using [Relic](https://github.com/Club-Seiden/RelicPackageManager/):
`RELICGET PLOC('https://github.com/WorksOfBarry/DB2GET/archive/master.zip') PDIR('DB2GET-master') PNAME(SOMELIB)`
## Usage
DB2GET takes two parameters.
1. Direct link to file
2. IFS path to file to create (or overwrite)
```
//Download into current directory
DB2GET PLOC('http://pastebin.com/raw/UBBfawt9') PPTH(SOMETEST.TXT)
//Download into IFS root
DB2GET PLOC('http://pastebin.com/raw/UBBfawt9') PPTH('/sometest.txt')
```