Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

HP OpenVMS Systems

Ask the Wizard
» 

HP OpenVMS Systems

OpenVMS information

» What's new on our site
» Upcoming events
» Configuration and buying assistance
» Send us your comments

HP OpenVMS systems

» OpenVMS software
» Supported Servers
» OpenVMS virtualization
» OpenVMS solutions and partners
» OpenVMS success stories
» OpenVMS service and support
» OpenVMS resources and information
» OpenVMS documentation
» Education and training

Evolving business value

» Business Systems Evolution
» AlphaServer systems transition planning
» Alpha RetainTrust program

Related links

» HP Integrity servers
» HP Alpha systems
» HP storage
» HP software
» HP products and services
» HP solutions
» HP support
disaster proof
HP Integrity server animation
Content starts here

Ask the Wizard Questions

UCX: Callable FTP

The Question is:

How do we invoke FTP from a C program?

We have written a C program that uses the instruction

SYSTEM("@FTP_COMMAND_FILE.COM P1 P2 P3");

The command file performs FTP GET operations against
the node given in P1.

This works well but the command SYSTEM takes a lot of CPU
power when a new subprocess is created for every FTP operation.

Is there a better way to invoke FTP from a C program then described
above? We are using UCX033 for TCP/IP communication.


The Answer is:


   Create and maintain a subprocess specifying mailboxes as the input
   and output devices, and pass ftp and DCL commands to the subprocess
   via mailbox messages.  (In this case, the output does not appear to
   be of particular interest, and can be discarded.)

   Use of $qio and/or $qiow calls is common practice when performing
   this task.



 

** About PDF files: The PDF files on this Web site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software installed on your system, you may download it from the Adobe Web site.
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.