FTP problem in IDLnetURL method SetProperty [message #60771] |
Sun, 15 June 2008 12:27  |
skymaxwell@gmail.com
Messages: 127 Registered: January 2007
|
Senior Member |
|
|
I can't transfer 2 files to FTP server. First file transfered is
successfull, but on second my IDL is CRASHED and CLOSED.
Here is fragment of my source code
cmd=['MKD '+login,'CWD '+login,'MKD '+STRTRIM(STRING(order),2),$
'CWD '+STRTRIM(STRING(order),2),'MKD in','CWD in']
response=oUrl->FtpCommand(cmd)
path=login+'/'+STRTRIM(STRING(order),2)+'/in/'
oUrl->SetProperty,URL_PATH=path+file1
print,'file1=',path+file1
response=oUrl->Put(file1)
print,'file2=',path+file2
;The next string generates error and system told that
;idl_opserver.ex.exe get error and will closed'
oUrl->SetProperty,URL_PATH=path+file2
response=oUrl->Put(file2)
Thanks a lot
|
|
|
Re: FTP problem in IDLnetURL method SetProperty [message #60920 is a reply to message #60771] |
Sun, 15 June 2008 13:51  |
Kenneth P. Bowman
Messages: 585 Registered: May 2000
|
Senior Member |
|
|
In article
<d4fbdc55-68e0-4668-b8a0-74050fe931b3@d1g2000hsg.googlegroups.com>,
"skymaxwell@gmail.com" <skymaxwell@gmail.com> wrote:
> I can't transfer 2 files to FTP server. First file transfered is
> successfull, but on second my IDL is CRASHED and CLOSED.
>
> Here is fragment of my source code
>
> cmd=['MKD '+login,'CWD '+login,'MKD '+STRTRIM(STRING(order),2),$
> 'CWD '+STRTRIM(STRING(order),2),'MKD in','CWD in']
> response=oUrl->FtpCommand(cmd)
> path=login+'/'+STRTRIM(STRING(order),2)+'/in/'
> oUrl->SetProperty,URL_PATH=path+file1
> print,'file1=',path+file1
> response=oUrl->Put(file1)
> print,'file2=',path+file2
>
> ;The next string generates error and system told that
> ;idl_opserver.ex.exe get error and will closed'
>
> oUrl->SetProperty,URL_PATH=path+file2
> response=oUrl->Put(file2)
>
> Thanks a lot
I've been having the same problem with IDLnetURL. It crashes IDL
on my Mac. Please send a bug report to ITTVIS.
As an alternative, I've been SPAWNING a curl process. That will work
on *nix and Macs; can't help you if you're running Windows.
Ken Bowman
|
|
|