[AIX] FTP scripting


Recommended Posts

I need to script an ftp session that will happen on a daily basis. I have a program that runs on a server every morning at 1AM that collects data from Oracle and puts it into a CSV file. Now I want it to be moved automatically to a Windows server.

AIX = rkeOrcl1

Windows = rkeFTP1

The file will be dynamically named: blahblah-m/d/yy.csv.

The AIX box, of course, uses KornShell. Any help is greatly appreciated :D

Link to comment
Share on other sites

ftp -niv {ftpServer}<<EOF
user {username}
pass {password}
binary
put $file
EOF

I'm not sure if that really helps, I haven't done Unix Shell FTP'ing before....

Link to comment
Share on other sites

You'll have to forgive me, I have not had much experience with AIX or Unix in general for that matter. I was kind of thrown into this and am kind of spit-balling my way through it.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.