FTP and email from D3/Linux

FTP and email from D3/Linux

Post by Jeffrey Kaufma » Tue, 07 Nov 2000 04:00:00



We are interested in using FTP to send documents and sending outbound email.
In AP/Pro, we use PicLan-IP. Being new to D3/Linux, I know they can both be
done, I just don't know how. In particular, the questions are:

1) does the document need to reside in Linux, or can it be sent from D3?
2) what is the proper syntax for the "ftp" command in Linux?
3) what is the proper syntax for the "sendmail" command in Linux?
4) is the above syntax the same for D3/AIX?

Maybe some one can volunteer a snip of code?

Thanks in advance for your help,

Jeffrey Kaufman
Key Data Systems Group
www.keydat.com

 
 
 

FTP and email from D3/Linux

Post by Tony Gravagn » Wed, 08 Nov 2000 04:00:00


There are many ways to do this.
1) Copy your data to Linux and then Execute the FTP command to process the
data.  You'll need to stack your login/password and file transfer data.
2) Copy your data to Linux.  From D3, create a script that does all the FTP
functions.  Write the script to Linux, set permissions, then execute it from D3.

3) FTP directly from D3 using a socket.  Same goes for e-mail.  It's all just a
matter of understanding the FTP or SMTP protocols (I know, that's redundant).

For an excellent start, see Glen Bachelor's (aka Ryengoth's) site,
http://pick-source.freeservers.com/ where he has an example of and SMTP client
for D3.  If you are going to implement FTP or SMTP yourself, you should become
familiar with the RFC documents which define all the common protocols and their
variations.  See RFC821 for SMTP and RFC959 for FTP.  Definitely not light
reading material, but that makes it all the more rewarding if you can
successfully implement one of them. I've written D3 clients for Usenet/NNTP,
SMTP, HTTP, and a couple others.  Once you get the hang of it, it's not bad.

Good Luck,
Tony


> We are interested in using FTP to send documents and sending outbound email.
> In AP/Pro, we use PicLan-IP. Being new to D3/Linux, I know they can both be
> done, I just don't know how. In particular, the questions are:

> 1) does the document need to reside in Linux, or can it be sent from D3?
> 2) what is the proper syntax for the "ftp" command in Linux?
> 3) what is the proper syntax for the "sendmail" command in Linux?
> 4) is the above syntax the same for D3/AIX?

> Maybe some one can volunteer a snip of code?

> Thanks in advance for your help,

> Jeffrey Kaufman
> Key Data Systems Group
> www.keydat.com


 
 
 

FTP and email from D3/Linux

Post by zolling » Wed, 08 Nov 2000 04:00:00


Do you want to send the docs inline (text) or as an attachment? If you are
sending plain ascii, you can just call mailx. See then man page for sytax,
it's pretty straight forward. If you are sending the doc as an attachment you
will want to use something like elm. For example :

execute \!sh 'elm -s "\:SUB:\" \:ADD:\ </tmp/\:ATT.FILE:\'\

SUB is a text file with the subject
ADD is the email address to send to
ATT.FILE is the file attachement. It will be mime encoded.

If you are going to use FTP I would recoment using expect
(http://expect.nist.gov) so that you can use off-the-shelf software that will
do error correction and checking over ftp. The package comes with example
scripts for ftp.

Good luck.

IN ARTICLE ,  WROTE:

Quote:>We are interested in using FTP to send documents and sending outbound email.
>In AP/Pro, we use PicLan-IP. Being new to D3/Linux, I know they can both be
>done, I just don't know how. In particular, the questions are:

>1) does the document need to reside in Linux, or can it be sent from D3?
>2) what is the proper syntax for the "ftp" command in Linux?
>3) what is the proper syntax for the "sendmail" command in Linux?
>4) is the above syntax the same for D3/AIX?

>Maybe some one can volunteer a snip of code?

>Thanks in advance for your help,

>Jeffrey Kaufman
>Key Data Systems Group
>www.keydat.com

 
 
 

1. Using FTP on D3 Proplus / Linux

I'm running an evaluation copy of D3 Proplus which came bundled with Linux
2.0.36.

It's networked with my PC and I can telnet in from the PC with no problem.
But when I try to run FTP on the PC and connect to the Pick system, I get
"connect  :10061" and any subsequent ftp command says "not connected".

Comparing it to other Pick/Linux systems I have access to, it appears that I
need an entry in /etc/inetd.conf, but I don't seem to have the files that
the other systems reference.

Any help would be greatly appreciated.

Thanks.


2. If statement inside select

3. D3/Linux - D3-to-Linux communication to print spooler

4. Filter using dimension properties

5. D3 7.0 to D3 7.1 Incompatibility problem with c functions on D3/Linux

6. Is it possible to detect if a database supports multithreading?

7. Dire&#1089;&#1077;rtly sending E-mail From D3 (D3/NT ior D3/Linux)

8. XML and SQL 7

9. Infolink - D3/Sco to D3/Linux

10. Calling d3 from perl where d3 is on another linux machine inside a firewall

11. D3/Linux Restore from D3/NT

12. Time to upgrade D3/Linux or D3/NT

13. D3 NT vs. D3 LINUX