Topics: AIX, System Admin
Automatic FTP
How to do an automatic FTP from within a script:
- -n prevents automatic login and -v puts it in verbose mode
- asciorbin_Type should be set to either ascii or binary
- grep for $PHRASE (particular return code) from $LOGFILE to determine success or failure
ftp -nv $REMOTE_MACHINE < $LOGFILE user $USER_NAME $USER_PASSWORD $asciorbin_Type cd $REMOTE_PATH put $LOCAL_FILE $REMOTE_FILE quit ! grep $PHRASE $LOGFILE
If you found this useful, here's more on the same topic(s) in our blog:
- mkpasswd
- JFS2 snapshots
- Using curl with a proxy
- Change default value of hcheck_interval
- Using an alternative MAC address
UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.
Interested in learning more?
Interested in learning more?




