crment
16th June 2005, 17:03
What is the command and syntax for calling ftp within a program script? I would like to have a user ftp a file while in a session.

mark_h
16th June 2005, 17:36
Why use FTP? Would using client2server work? You can also launch an client app using app_start. What exactly is the need? Would help others suggest solutions.

frigyesg
16th June 2005, 17:40
Create a shellscript with the ftp commands and start it from your program script with the command
shell() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_starting_and_stopping_programs_shell)

You can also generate the shellscript within your program script with the
seq.open, seq.puts, seq.close commands.

suribaan
16th June 2005, 17:45
I used shell script to ftp a file in to home directory and put it in a job. Then write Baan script to check for the file and process it. Again, you should be very clear on what you want you want to do? As Mark pointed out, you can use client2server to transfer your file from your pc to your Baan environment and process it.