Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP from AIX to winnt/98 through automated processes...

Status
Not open for further replies.

mckarl

Programmer
May 5, 1999
147
GB
Hi all, give me a couple of week, and i'll take up all the space in tek-tips with my Q'z, <br><br>I want to run a batch process for ftp'ing from aix to windows systems, but it is automated.<br><br>I have done this sendina mail using a batch process similar to:<br><br>+++++++++++++++++++++++++++++++++++++++++<br>telnet i.p.a.d.d.r 25<br>mail from:error-report<br>rcpt to:karl<br>data<br>yayayayayayayayayay<br>.<br>quit<br>+++++++++++++++++++++++++++++++++++++++++<br><br>and i was wondering if if i can make a similar process for FTP transfer, <br><br>ftp i.p.a.d.d.r <i>or</i> telnet i.p.a.d.d.r 61<br>...<br>...<br>...<br><br>-- well it dont work, any of you guys know an easier/more effective(/one that works) way of doing it??<br><br>Thanks in advance ..<br>Karl. (c'mon boaterdude and laceydude!!)<br> <p> Karl<br><a href=mailto:mc_karl@yahoo.com>mc_karl@yahoo.com</a><br><a href= > </a><br> ~ ~ ~ ~<br>
K A R L<br>
~ ~ ~ ~
 
I do this at work, you use the &quot;here document&quot; operator<br><br>ftp some.host.com &lt;&lt;!<br>&nbsp;&nbsp;&nbsp;&nbsp;quote user mlacey<br>&nbsp;&nbsp;&nbsp;&nbsp;quote pass hithere<br>&nbsp;&nbsp;&nbsp;&nbsp;put sourcefile targetfile<br>!<br><br>there's an option you have to specify - but I can't remember it :-(&nbsp;&nbsp;it's in the man page though<br><br>it's also a good idea to use -v (verbose) and capture the output checking for error numbers<br> <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
If you want to automate with AIX like client and another system acting like server you can do create a file named <b><FONT FACE=monospace>.netrc</font></b> with<br><FONT FACE=monospace><br>machine <b>the_server</b> user <b>the_user</b> password <b>the_password</b><br>macdef init<br>binary<br>cd /some/some/some<br>put /other/other<br>get /another/another<br>bye<br><br></font><br><br>Note: 1. Your macro must be named <i>init</i> to FTP run it automagically.<br>2. You must use <i>ftp the_server</i> exactly like you wrote there.<br>3. There is no intelligence in the .netrc file<br>4. Create the file and set it to rw------- exactly<br>3. If you want to connect to server without running the auto_macro you can use <i>ftp -n the_server[/n]<br><br>I hope it works...
 
hi all, well, i tried it, and cos im trying to FTP to a windows machine, it refuses all connections... <br><br>-- any other suggestions?<br><br>Thanx in advance!<br><br>Karl.. <p>Karl Butterworth<br><a href=mailto:karl_butterworth@ordina.co.uk>karl_butterworth@ordina.co.uk</a><br><a href= > </a><br><i>I'm slim shadey, yes i'm the real shadey, all you other slim shadeys are just imitating; so wont the real slim shadey please stand up, please stand up, please stand up!</i>
 
What version of windows are you running?&nbsp;&nbsp;Windows 95/98 do not have an ftp server out of the box.&nbsp;&nbsp;(They do have ftp clients.)&nbsp;&nbsp;You may need to install an ftp server on your windows machine.
 
hhhmmmm... thanks caliban, too much hastle, may as well schedule an ftp procedure through an ftp client on the windows side of things, never mind, thanks all!!!<br> <p>Karl Butterworth<br><a href=mailto:karl_butterworth@ordina.co.uk>karl_butterworth@ordina.co.uk</a><br><a href= > </a><br><i>I'm slim shadey, yes i'm the real shadey, all you other slim shadeys are just imitating; so wont the real slim shadey please stand up, please stand up, please stand up!</i>
 
Warning:&nbsp;&nbsp;the .netrc file needs to have inside<br><br><FONT FACE=monospace><br>machine <b>the_server</b> <font color=red>login[/re] <b>the_user</b> password <b>the_password</b><br></font><br><br>But I guess you won´t need that...
 
Hi Karl<br><br>I'm aware of a small TFTP server you can install on Win9x. It's simple but it is working. That way you can send/receive to/from Win9x/Unix. I've used it - it's simple but it's working.<br><br>This is trivial FTP so not much security is available.<br>If you are interested, I can make a search for the program?
 
Hi Karl<br><br>I'm aware of a small TFTP server you can install on Win9x. It's simple but it is working. That way you can send/receive to/from Win9x/Unix. I've used it - it's simple but it's working.<br><br>This is trivial FTP so not much security is available.<br>If you are interested, I can make a search for the program?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top