I had to redo the FTP scripts when we moved to 7.2 on a 64bit box due to the 
security of Windows.  
I had to go from a batch file that called a txt file for the commands to a 
single batch file that executed all of the commands.  

I enter this text in a .bat file and just call it from the paragraph.  Nothing 
fancy.  The trick is that the batch file is making the DAT file so there are no 
windows security issues.  

@echo off
echo user YOURUSERNAME> ftpcmd.dat
echo YOUPASSWORD>> ftpcmd.dat
echo bin>> ftpcmd.dat
echo put E:\tmp\FILETOSEND.txt FILENAMEATSITE.txt >> ftpcmd.dat
echo cl >> ftpcmd.dat
echo qui >> ftpcmd.dat
ftp -n -s:ftpcmd.dat www.WEBSITE.com
del ftpcmd.dat


Jeffrey Lettau
ERP Systems Manager
polkaudio 


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Kevin King
Sent: Thursday, February 17, 2011 7:48 PM
To: U2 Users List
Subject: [U2] Frustrated with Rocket / Unidata 7.2

About a week ago I upgraded Unidata 7.1 on Windows XP/32 to Unidata 7.2 on
Windows 7/64.  Everything I need in Unidata seems to work fine on this
release with one notable exception:  Unidata 7.2 on Windows will no longer
properly execute the Windows ftp program.  Rocket support has basically said
that in this version they changed the telnet server so that it can only run
fully stdin/stdout compliant programs in the shell.  Because the Windows ftp
program isn't exactly stdin/stdout compliant, it is no longer a functional
PCPERFORM program.  Even if the ftp program is scripted to connect,
transfer, and exit with no additional inputs or outputs, the ftp program
will still fail.  Of course, in this case if there's a put in the commands
it'll fail after writing a zero byte file, potentially overwriting
something.

I could be frustrated with Microsoft because, after all, it's their program
that's failing, I'm more frustrated with Rocket.  While it's frustrating to
have a past ability removed it's more frustrating to have received
absolutely zero warning from Rocket that this could happen.  I've searched
the docs for 7.2... can't find a word about this change.  (Hey, and I could
be missing something; that's certainly a possibility.)

It's fortunate that this install isn't a big production system, but what if
it was?  There are several production systems running Unidata on Windows, so
if any of y'all are using ftp or any OS commands that may not meet Rocket's
muster, please be aware of this change in 7.2.

BTW, for me the fix was to use WinSCP (in command line mode) instead of
Microsoft's FTP program.  So far it seems to work just fine though the
scripting is a bit different from Microsoft's ftp client.
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

________________________________


Disclaimer: This email may contain confidential and/or privileged information. 
It is intended only for the person or persons to whom it is addressed. Any 
unauthorized review, use, or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email or telephone and 
destroy all copies of the original message.

Please consider the environment before printing this email.
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to