dbTalk Databases Forums  

Copy file to a remote IP address

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss Copy file to a remote IP address in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shah
 
Posts: n/a

Default Copy file to a remote IP address - 04-08-2008 , 11:47 AM






Hello,

What is the best way to achieve this in VFP.

At end of each day, I need the user to send a report file (text file
with report data) to a remote location (remote IP address or a FTP
site). Emailing as an attachment is not a convient option as some
servers do not allow any attachments to go through.

I have seen some application where a copy of the data from a local
machine is directly accessed by a remote application. In the
Settings.ini a IP address is configured and this allows the
application to direct the file to that location.

Any ideas if this can be done in VFP.

Thanks in advance

Shah

Reply With Quote
  #2  
Old   
sanforized
 
Posts: n/a

Default Re: Copy file to a remote IP address - 04-12-2008 , 12:06 PM






shah wrote:

Quote:
Hello,

What is the best way to achieve this in VFP.

At end of each day, I need the user to send a report file (text file
with report data) to a remote location (remote IP address or a FTP
site). Emailing as an attachment is not a convient option as some
servers do not allow any attachments to go through.

I have seen some application where a copy of the data from a local
machine is directly accessed by a remote application. In the
Settings.ini a IP address is configured and this allows the
application to direct the file to that location.

Any ideas if this can be done in VFP.

Thanks in advance

Shah
In unix (perhaps linux as well) there is a way to redirect a
text file to become the body of an email, and achieve this
using a single command line that could be automated as a
crontab function. There's no reason an ordinary ascii text
file ever needs to be sent as an attachment.

If you don't have a unix system handy you can start here:

http://www.hmug.org/man/1/mail.php

If you don't have a unix or linux system available on your
local network you could always get someone to compile gnu's
freely available in source code mail program for your
particular OS.

If you're using windows I've done an automated function
[control panel > Scheduled Tasks] to automatically ftp
data files at a specific time of day. You'll need to
create a batch file to bring up ftp, and a text file
that the batch file reads in order to perform the the
specific sequential functions you'll need. Mine logs
onto a unix system with name and password, cd's to the
desired directory, proclaims binary mode, then mget's
the desired files by name, and forces a disconnect
when the transfer is complete.

That system has been working like a dream for me for
over 5 years.




Reply With Quote
  #3  
Old   
sanforized
 
Posts: n/a

Default Re: Copy file to a remote IP address - 04-12-2008 , 12:06 PM



shah wrote:

Quote:
Hello,

What is the best way to achieve this in VFP.

At end of each day, I need the user to send a report file (text file
with report data) to a remote location (remote IP address or a FTP
site). Emailing as an attachment is not a convient option as some
servers do not allow any attachments to go through.

I have seen some application where a copy of the data from a local
machine is directly accessed by a remote application. In the
Settings.ini a IP address is configured and this allows the
application to direct the file to that location.

Any ideas if this can be done in VFP.

Thanks in advance

Shah
In unix (perhaps linux as well) there is a way to redirect a
text file to become the body of an email, and achieve this
using a single command line that could be automated as a
crontab function. There's no reason an ordinary ascii text
file ever needs to be sent as an attachment.

If you don't have a unix system handy you can start here:

http://www.hmug.org/man/1/mail.php

If you don't have a unix or linux system available on your
local network you could always get someone to compile gnu's
freely available in source code mail program for your
particular OS.

If you're using windows I've done an automated function
[control panel > Scheduled Tasks] to automatically ftp
data files at a specific time of day. You'll need to
create a batch file to bring up ftp, and a text file
that the batch file reads in order to perform the the
specific sequential functions you'll need. Mine logs
onto a unix system with name and password, cd's to the
desired directory, proclaims binary mode, then mget's
the desired files by name, and forces a disconnect
when the transfer is complete.

That system has been working like a dream for me for
over 5 years.




Reply With Quote
  #4  
Old   
sanforized
 
Posts: n/a

Default Re: Copy file to a remote IP address - 04-12-2008 , 12:06 PM



shah wrote:

Quote:
Hello,

What is the best way to achieve this in VFP.

At end of each day, I need the user to send a report file (text file
with report data) to a remote location (remote IP address or a FTP
site). Emailing as an attachment is not a convient option as some
servers do not allow any attachments to go through.

I have seen some application where a copy of the data from a local
machine is directly accessed by a remote application. In the
Settings.ini a IP address is configured and this allows the
application to direct the file to that location.

Any ideas if this can be done in VFP.

Thanks in advance

Shah
In unix (perhaps linux as well) there is a way to redirect a
text file to become the body of an email, and achieve this
using a single command line that could be automated as a
crontab function. There's no reason an ordinary ascii text
file ever needs to be sent as an attachment.

If you don't have a unix system handy you can start here:

http://www.hmug.org/man/1/mail.php

If you don't have a unix or linux system available on your
local network you could always get someone to compile gnu's
freely available in source code mail program for your
particular OS.

If you're using windows I've done an automated function
[control panel > Scheduled Tasks] to automatically ftp
data files at a specific time of day. You'll need to
create a batch file to bring up ftp, and a text file
that the batch file reads in order to perform the the
specific sequential functions you'll need. Mine logs
onto a unix system with name and password, cd's to the
desired directory, proclaims binary mode, then mget's
the desired files by name, and forces a disconnect
when the transfer is complete.

That system has been working like a dream for me for
over 5 years.




Reply With Quote
  #5  
Old   
sanforized
 
Posts: n/a

Default Re: Copy file to a remote IP address - 04-12-2008 , 12:06 PM



shah wrote:

Quote:
Hello,

What is the best way to achieve this in VFP.

At end of each day, I need the user to send a report file (text file
with report data) to a remote location (remote IP address or a FTP
site). Emailing as an attachment is not a convient option as some
servers do not allow any attachments to go through.

I have seen some application where a copy of the data from a local
machine is directly accessed by a remote application. In the
Settings.ini a IP address is configured and this allows the
application to direct the file to that location.

Any ideas if this can be done in VFP.

Thanks in advance

Shah
In unix (perhaps linux as well) there is a way to redirect a
text file to become the body of an email, and achieve this
using a single command line that could be automated as a
crontab function. There's no reason an ordinary ascii text
file ever needs to be sent as an attachment.

If you don't have a unix system handy you can start here:

http://www.hmug.org/man/1/mail.php

If you don't have a unix or linux system available on your
local network you could always get someone to compile gnu's
freely available in source code mail program for your
particular OS.

If you're using windows I've done an automated function
[control panel > Scheduled Tasks] to automatically ftp
data files at a specific time of day. You'll need to
create a batch file to bring up ftp, and a text file
that the batch file reads in order to perform the the
specific sequential functions you'll need. Mine logs
onto a unix system with name and password, cd's to the
desired directory, proclaims binary mode, then mget's
the desired files by name, and forces a disconnect
when the transfer is complete.

That system has been working like a dream for me for
over 5 years.




Reply With Quote
  #6  
Old   
sanforized
 
Posts: n/a

Default Re: Copy file to a remote IP address - 04-12-2008 , 12:06 PM



shah wrote:

Quote:
Hello,

What is the best way to achieve this in VFP.

At end of each day, I need the user to send a report file (text file
with report data) to a remote location (remote IP address or a FTP
site). Emailing as an attachment is not a convient option as some
servers do not allow any attachments to go through.

I have seen some application where a copy of the data from a local
machine is directly accessed by a remote application. In the
Settings.ini a IP address is configured and this allows the
application to direct the file to that location.

Any ideas if this can be done in VFP.

Thanks in advance

Shah
In unix (perhaps linux as well) there is a way to redirect a
text file to become the body of an email, and achieve this
using a single command line that could be automated as a
crontab function. There's no reason an ordinary ascii text
file ever needs to be sent as an attachment.

If you don't have a unix system handy you can start here:

http://www.hmug.org/man/1/mail.php

If you don't have a unix or linux system available on your
local network you could always get someone to compile gnu's
freely available in source code mail program for your
particular OS.

If you're using windows I've done an automated function
[control panel > Scheduled Tasks] to automatically ftp
data files at a specific time of day. You'll need to
create a batch file to bring up ftp, and a text file
that the batch file reads in order to perform the the
specific sequential functions you'll need. Mine logs
onto a unix system with name and password, cd's to the
desired directory, proclaims binary mode, then mget's
the desired files by name, and forces a disconnect
when the transfer is complete.

That system has been working like a dream for me for
over 5 years.




Reply With Quote
  #7  
Old   
sanforized
 
Posts: n/a

Default Re: Copy file to a remote IP address - 04-12-2008 , 12:06 PM



shah wrote:

Quote:
Hello,

What is the best way to achieve this in VFP.

At end of each day, I need the user to send a report file (text file
with report data) to a remote location (remote IP address or a FTP
site). Emailing as an attachment is not a convient option as some
servers do not allow any attachments to go through.

I have seen some application where a copy of the data from a local
machine is directly accessed by a remote application. In the
Settings.ini a IP address is configured and this allows the
application to direct the file to that location.

Any ideas if this can be done in VFP.

Thanks in advance

Shah
In unix (perhaps linux as well) there is a way to redirect a
text file to become the body of an email, and achieve this
using a single command line that could be automated as a
crontab function. There's no reason an ordinary ascii text
file ever needs to be sent as an attachment.

If you don't have a unix system handy you can start here:

http://www.hmug.org/man/1/mail.php

If you don't have a unix or linux system available on your
local network you could always get someone to compile gnu's
freely available in source code mail program for your
particular OS.

If you're using windows I've done an automated function
[control panel > Scheduled Tasks] to automatically ftp
data files at a specific time of day. You'll need to
create a batch file to bring up ftp, and a text file
that the batch file reads in order to perform the the
specific sequential functions you'll need. Mine logs
onto a unix system with name and password, cd's to the
desired directory, proclaims binary mode, then mget's
the desired files by name, and forces a disconnect
when the transfer is complete.

That system has been working like a dream for me for
over 5 years.




Reply With Quote
  #8  
Old   
sanforized
 
Posts: n/a

Default Re: Copy file to a remote IP address - 04-12-2008 , 12:06 PM



shah wrote:

Quote:
Hello,

What is the best way to achieve this in VFP.

At end of each day, I need the user to send a report file (text file
with report data) to a remote location (remote IP address or a FTP
site). Emailing as an attachment is not a convient option as some
servers do not allow any attachments to go through.

I have seen some application where a copy of the data from a local
machine is directly accessed by a remote application. In the
Settings.ini a IP address is configured and this allows the
application to direct the file to that location.

Any ideas if this can be done in VFP.

Thanks in advance

Shah
In unix (perhaps linux as well) there is a way to redirect a
text file to become the body of an email, and achieve this
using a single command line that could be automated as a
crontab function. There's no reason an ordinary ascii text
file ever needs to be sent as an attachment.

If you don't have a unix system handy you can start here:

http://www.hmug.org/man/1/mail.php

If you don't have a unix or linux system available on your
local network you could always get someone to compile gnu's
freely available in source code mail program for your
particular OS.

If you're using windows I've done an automated function
[control panel > Scheduled Tasks] to automatically ftp
data files at a specific time of day. You'll need to
create a batch file to bring up ftp, and a text file
that the batch file reads in order to perform the the
specific sequential functions you'll need. Mine logs
onto a unix system with name and password, cd's to the
desired directory, proclaims binary mode, then mget's
the desired files by name, and forces a disconnect
when the transfer is complete.

That system has been working like a dream for me for
over 5 years.




Reply With Quote
  #9  
Old   
sanforized
 
Posts: n/a

Default Re: Copy file to a remote IP address - 04-12-2008 , 12:06 PM



shah wrote:

Quote:
Hello,

What is the best way to achieve this in VFP.

At end of each day, I need the user to send a report file (text file
with report data) to a remote location (remote IP address or a FTP
site). Emailing as an attachment is not a convient option as some
servers do not allow any attachments to go through.

I have seen some application where a copy of the data from a local
machine is directly accessed by a remote application. In the
Settings.ini a IP address is configured and this allows the
application to direct the file to that location.

Any ideas if this can be done in VFP.

Thanks in advance

Shah
In unix (perhaps linux as well) there is a way to redirect a
text file to become the body of an email, and achieve this
using a single command line that could be automated as a
crontab function. There's no reason an ordinary ascii text
file ever needs to be sent as an attachment.

If you don't have a unix system handy you can start here:

http://www.hmug.org/man/1/mail.php

If you don't have a unix or linux system available on your
local network you could always get someone to compile gnu's
freely available in source code mail program for your
particular OS.

If you're using windows I've done an automated function
[control panel > Scheduled Tasks] to automatically ftp
data files at a specific time of day. You'll need to
create a batch file to bring up ftp, and a text file
that the batch file reads in order to perform the the
specific sequential functions you'll need. Mine logs
onto a unix system with name and password, cd's to the
desired directory, proclaims binary mode, then mget's
the desired files by name, and forces a disconnect
when the transfer is complete.

That system has been working like a dream for me for
over 5 years.




Reply With Quote
  #10  
Old   
sanforized
 
Posts: n/a

Default Re: Copy file to a remote IP address - 04-12-2008 , 12:06 PM



shah wrote:

Quote:
Hello,

What is the best way to achieve this in VFP.

At end of each day, I need the user to send a report file (text file
with report data) to a remote location (remote IP address or a FTP
site). Emailing as an attachment is not a convient option as some
servers do not allow any attachments to go through.

I have seen some application where a copy of the data from a local
machine is directly accessed by a remote application. In the
Settings.ini a IP address is configured and this allows the
application to direct the file to that location.

Any ideas if this can be done in VFP.

Thanks in advance

Shah
In unix (perhaps linux as well) there is a way to redirect a
text file to become the body of an email, and achieve this
using a single command line that could be automated as a
crontab function. There's no reason an ordinary ascii text
file ever needs to be sent as an attachment.

If you don't have a unix system handy you can start here:

http://www.hmug.org/man/1/mail.php

If you don't have a unix or linux system available on your
local network you could always get someone to compile gnu's
freely available in source code mail program for your
particular OS.

If you're using windows I've done an automated function
[control panel > Scheduled Tasks] to automatically ftp
data files at a specific time of day. You'll need to
create a batch file to bring up ftp, and a text file
that the batch file reads in order to perform the the
specific sequential functions you'll need. Mine logs
onto a unix system with name and password, cd's to the
desired directory, proclaims binary mode, then mget's
the desired files by name, and forces a disconnect
when the transfer is complete.

That system has been working like a dream for me for
over 5 years.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.