Isftpretry
IBM i - SFTP file transfer with retries - Bash script
Install / Use
/learn @dkesselman/IsftpretryREADME
isftpretry
IBM i - SFTP file transfer with retries - Bash script
This BASH script is ready to be used on IBM i . Please, pay attention to system requirements.
System Requirements
-
Desirable:
- IBM i V7R2 or newer (maybe works on V7R1)
- YUM (also works with Perzl tools)
- SSH (it's not mandatory, but really useful)
-
Mandatory:
- cURL
- lftp
You need to create your IFS directories and change constants so they reflect real paths:
- script
- OUTBOX
- OUTBOX_OLD (already processed files)
Also need to create your Data Area where you'll receive program return code. Finally, you need to adjust header file alertsmail.txt
This program sends files from OUTBOX folder to the destination server. If something goes wrong during file transfer performs as many retries as you need ($retries constant). When (if) all retries are gone, sends an email notification.
Data Area is used to return a value, so you can use a CL to call this script:
- 0=success
- any other value=error
Related Skills
node-connect
341.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.5kCommit, push, and open a PR
