FTP to WindowsNT from QNX

Dear All,
I am trying to schedule a set of macros which have been defined in my
/home/.netrc command file. QNX is the client and the WindowsNT is the
Server. I want to run FTP without operator intervention, i.e. like a batch
file, executing my macros. How is this done?

Thanks in Advance.


Regards,

Mark.

Previously, Mark Dickson wrote in comp.os.qnx:

Dear All,
I am trying to schedule a set of macros which have been defined in my
/home/.netrc command file. QNX is the client and the WindowsNT is the
Server. I want to run FTP without operator intervention, i.e. like a batch
file, executing my macros. How is this done?

Thanks in Advance.


Regards,

Mark.

You can try ncftp (www.ncftp.com). It comes with two programs called
ncftpget and ncftpput that are command-line put and get functions.
They’re intended for unattended operations and batch file use. Use
the 3.0.2 version of ncftp.

QNX 6 (RtP) comes with ncftp in a package. Building on QNX4 is not
difficult, but not out-of-the-box either.

Cheers,
Andrew

It may be different under Windows, but an example of an ftp script
is shown below. Simply put whatever commands you need in the file
between the login and quit lines and have ftp start with the line
shown here: ftp -n -v scriptfile

Of course, hostname, username, and password must be legitimate
and this shows an obvious security hole. The file contains a valid
name and password for a specific system. Hopefully the ftp host
will allow anonymous logins.

All the standard ftp commands will work, inclulding cd and lcd
for changing remote and local directories respectively.

ftp autotransfer script

open hostname
user username passwd
prompt off
binary
mput *.jpg
ascii
mput *.txt
bye

-Paul

Dear All,
I am trying to schedule a set of macros which have been defined in my
/home/.netrc command file. QNX is the client and the WindowsNT is the
Server. I want to run FTP without operator intervention, i.e. like a batch
file, executing my macros. How is this done?

Thanks in Advance.

Regards,

Mark.

Previously, Mark Dickson wrote in comp.os.qnx:

Dear All,
I am trying to schedule a set of macros which have been defined in my
/home/.netrc command file. QNX is the client and the WindowsNT is the
Server. I want to run FTP without operator intervention, i.e. like a batch
file, executing my macros. How is this done?

Thanks in Advance.


Regards,

Mark.

How about trying “expect”? See:

http://expect.nist.gov

BTW, expect requires Tcl.

\

  • Pete