ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activetcl
activetcl
Re: [Activetcl] Incorparating FTP into tcl scripts / also for SFTP?
by Robert M Bartis other posts by this author
Oct 18 2007 1:33PM messages near this date
view in the new Beta List Site
Re: [Activetcl] Incorparating FTP into tcl scripts / also for SFTP? | Re: [Activetcl] Incorparating FTP into tcl scripts
Check to see what your TCLLIBPATH variable is pointing to.  What OS are you running and what
 version of ActiveState is installed?
 

Robert M. Bartis  
Stinger Quality Assurance
TEL: (908) 582-6566
EMAIL: bartis@[...].com 

 


________________________________

	From: activetcl-bounces@[...].com [mailto:activetcl-bounces@[...].com] On Behalf Of Tillman
n Basien
	Sent: Thursday, October 18, 2007 4:24 PM
	To: activetcl@[...].com
	Subject: Re: [Activetcl] Incorparating FTP into tcl scripts / also for SFTP?
	
	
	Is there something for sftp also?
	
	regards
	TAB
	
	Talvo Hornblower schrieb: 

		 
		The ftp package is a part of Tcllib. It's included with ActiveTcl distributions, but you c
an also download the code from SourceForge. It's page on the wiki (http://wiki.tcl.tk/1246) 
points to further pages telling you where to find it and how to install it.
		 
		Regards,
		Mike

			----- Original Message ----- 
			From: Gene Osteen <mailto:gosteen@[...].com>   
			To: Richard Toohey <mailto:richard.toohey@[...].nz>   ; activetcl@[...].com 
			Sent: Thursday, October 18, 2007 7:45 PM
			Subject: Re: [Activetcl] Incorparating FTP into tcl scripts


			First, thanks to everyone who are answering my initial query. I tried to run a very simpl
e script and got the following message:

			

			Error: can't find package ftp

			    while executing

			"package require ftp "

			    (file "test_ftp_1.tcl" line 3)

			tom.vericlaim.com> 

			

			Obviously something very basic is going wrong. Can anyone tell me how to tell if I have t
he ftp package and how to install it if I don't?

			

			

			Gene Osteen

			803-649-7486

			

			Confidentiality Notice: The electronic mail and/or documents accompanying this transmissi
on contain confidential information belonging to the sender, which is legally privileged. Th
e information is intended only for the individual's) or entity named above. If you are not t
he intended recipient you are hereby notified that any disclosure, copying, distribution or 
taking of any action in reliance on the contents of this information is strictly prohibited.
 If you have received this transmission in error, please immediately notify us by email or t
elephone to arrange for return or to destroy the original document. Thank You.

			

			
________________________________


			From: Richard Toohey [mailto:richard.toohey@[...].nz] 
			Sent: Thursday, October 18, 2007 2:39 PM
			To: Talvo Hornblower; Gene Osteen; activetcl@[...].com
			Subject: RE: [Activetcl] Incorparating FTP into tcl scripts

			

			We have used the ftp client in tcllib in fairly heavy (100s+ Mb), daily, production use f
or the last couple of years with no real issues (it can die somewhere in its guts if there a
re connection problems at the other end - never found out exactly where or why, but know if 
it happens then there are problems at the other end.)

			

			Running on Windows, FreeBSD, and OpenBSD.

			

			What has worked well is having a job that is purely responsible for sending the files - k
eep the ftp out of your other script(s).

			

			Your "client" script(s) build a list / database of files to be transmitted, and then your
 ftp script tries as many times to send the files as you want to try.  That way your FTP log
ic can be kept in one place.  Make sure you check results and use catch.

			

			Other than that, it works as it says on the packet ... http://tcllib.sourceforge.net/doc/
ftp.html

			
________________________________


			From: activetcl-bounces@[...].com [mailto:activetcl-bounces@[...].com] On Behalf Of Talvo
 Hornblower
			Sent: Friday, 19 October 2007 5:55 a.m.
			To: Gene Osteen; activetcl@[...].com
			Subject: Re: [Activetcl] Incorparating FTP into tcl scripts

			Hi Gene,

			

			There's an FTP package available as part of Tcllib which may well do what you need. You c
an find the docs for it at http://tcllib.sourceforge.net/doc/ftp.html - it's pretty simple t
o use, and has always worked well for me in the past. I have occasionally had issues with th
e timing out unexpectedly, though, and although they never gave me any major problems (I was
 using it manually), you might need to watch for that more carefully in an automated program
. 

			

			Regards,

			Mike

				----- Original Message ----- 

				From: Gene Osteen <mailto:gosteen@[...].com>   

				To: activetcl@[...].com 

				Sent: Thursday, October 18, 2007 5:48 PM

				Subject: [Activetcl] Incorparating FTP into tcl scripts

				

				All,

				            I've never used FTP inside tcl. I am running TCL 8.2 on UNIX boxes and 8.4 o
n WINDOWS machines. I am planning on using TCL to run as a scheduler and on of the things th
at will need to be done is moving files between platforms. Any advice on how to approach thi
s would be most helpful.

				

				Gene Osteen

				803-649-7486

				

				Confidentiality Notice: The electronic mail and/or documents accompanying this transmiss
ion contain confidential information belonging to the sender, which is legally privileged. T
he information is intended only for the individual's) or entity named above. If you are not 
the intended recipient you are hereby notified that any disclosure, copying, distribution or
 taking of any action in reliance on the contents of this information is strictly prohibited
. If you have received this transmission in error, please immediately notify us by email or 
telephone to arrange for return or to destroy the original document. Thank You.

				

				

				
________________________________


				_______________________________________________
				ActiveTcl mailing list
				ActiveTcl@[...].com
				To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

			

________________________________

			_______________________________________________
			ActiveTcl mailing list
			ActiveTcl@[...].com
			To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
			

		
________________________________


		_______________________________________________
		ActiveTcl mailing list
		ActiveTcl@[...].com
		To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
		  


	-- 
	

	ToolBox Solution GmbH

	CEO/CTO Tillmann A. Basien

	 

	Balinger Stra�e 37A

	D-70567 Stuttgart

	 

	Fon: +49 (0) 711 71 68 631

	Hy : +49 (0) 173 87 38 987

	Fax: +49 (0) 711 45 70 899

	** Sun Microsystems OEM Partner **

	 

	mailto:tab@[...].de / http://www.tbsol.de  <http://www.tbsol.de>  HRB: 23711

	 

	 

	This message and any files or documents attached are strictly confidential or otherwise leg
ally protected. It is intended only for the individual or entity named. If you are not the n
amed addressee or have received this email in error, please inform the sender immediately, d
elete it from your system and do not copy or disclose it or use it for any purpose. Please a
lso note that transmission cannot be guaranteed to be secure or error-free.
Thread:
Gene Osteen
Robert M Bartis
Talvo Hornblower
Tillmann Basien
Hillel Seltzer
Robert M Bartis
Richard Toohey
Gene Osteen
Talvo Hornblower

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved