J
Joseph
Hi,
I am trying to develop a C# application that will run
on Windows that will do the following
* Select file name to process
* FTP the file to a UNIX server
* Process this file on UNIX using a program on UNIX
"./pgmname -options Infilename > OutputFilename"
* FTP the output of this program back to Windows
* Process the resultant file and create output report file
I am not sure about how to execute the Unix command and
wait for the execution to be complete... Could someone
help me out here?
For the FTP, I plan to use the following... Is this ok?
Ftp ftp = new Ftp();
ftp.Connect (hostname);
ftp.Login (username, password);
// set transfer type to binary
ftp.SetTransferType (FtpTransferType.Binary);
// download file and display number of bytes transferred
long bytes = ftp.GetFile (remotePath, localPath);
Console.WriteLine ("Transfered {0} bytes.", bytes);
// disconnect
ftp.Disconnect();
Thanks
- Joseph
I am trying to develop a C# application that will run
on Windows that will do the following
* Select file name to process
* FTP the file to a UNIX server
* Process this file on UNIX using a program on UNIX
"./pgmname -options Infilename > OutputFilename"
* FTP the output of this program back to Windows
* Process the resultant file and create output report file
I am not sure about how to execute the Unix command and
wait for the execution to be complete... Could someone
help me out here?
For the FTP, I plan to use the following... Is this ok?
Ftp ftp = new Ftp();
ftp.Connect (hostname);
ftp.Login (username, password);
// set transfer type to binary
ftp.SetTransferType (FtpTransferType.Binary);
// download file and display number of bytes transferred
long bytes = ftp.GetFile (remotePath, localPath);
Console.WriteLine ("Transfered {0} bytes.", bytes);
// disconnect
ftp.Disconnect();
Thanks
- Joseph