comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Starting ftp from IDl
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Starting ftp from IDl [message #11610] Fri, 24 April 1998 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Martin Fuhrer wrote:
>
> Hi IDL Experts
>
> I'm writing an IDL application and I want to create a button which
> starts a ftp-based file transfer automatically. The address of the
> host and the user name can be hardwired somewhere in the code.
> I've tried to start ftp from the command line and I got the following
> error message:
> IDL> $ftp myhost
> (myhost::myuser:) login: Access of user wdenied.
>
> Any hint on how to implement this feature is very appreciated by

We've addressed this exact same question. This is the approach we've taken.
An IDL procedure writes out a temporary shell script containing the proper
commands, e.g.

#!/bin/csh
cd /mydir
ftp -n << done remote.computer.address
user username password
cd /mydir
ascii
put my.file "my.file"
quit
done

Then we spawn the commands

SPAWN, "source temporary.file", junk
SPAWN, "rm temporary.file", junk

William Thompson
[Message index]
 
Read Message
Read Message
Previous Topic: idl process id
Next Topic: Re: Satellite Image Data-Map Projection Question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Mon Dec 01 06:25:30 PST 2025

Total time taken to generate the page: 2.31359 seconds