hey guys, first post.
I have a program that takes a file from a windows box, and FTP's it to a unix/linux box. The program works fine, however there is something i want to add to it. I want the program to send 2 commands to the unix box while im still connected to it:
1) a concatonate command [cat MASTERLOGFILE.txt newlogfile >temp] and
2) a copy command [cp temp MASTERLOGFILE.txt].
I have read that there is a ftp.sendcmd(command) command that transfers a command to the box that its connected to, however i get errors when running the above mentioned commands. Is it possible to do this? Should I create a new program that ssh's into the desired unix box and throws commands that way? Thanks for any help!