#!/bin/bash file_path="/path/to/my/files" date=$(date +"%Y%m%d%H%M%S") x3270if "connect(L:ssl3270.myhost.org:2023)" x3270if "printtext(html,file,$file_path/myhost-$date.html)" x3270if "string(command1)" x3270if "enter" x3270if "printtext(html,file,$file_path/myhost-$date.html)" x3270if "enter" x3270if "string(command2)"