Teen Programmers Unite  
 

 

Return to forum top

ftp via shell script

Posted by infryq [send private reply] at August 05, 2001, 01:41:00 AM

could somebody tell me this can't be done, or does someone know how to do it & could point me at a tutorial? i'm trying to bundle a bunch of commands together... automagically marking up and tweaking a text file into readable HTML, then uploading it, all at once so it's not so much of a hassle. I'd like to be able to do it client side, but if i can't automate ftp i guess i could put the script directly on the server. :P don't want to though. i just can't figure how you'd work with the interface without feeding it commands in realtime.

Posted by CHollman82 [send private reply] at October 01, 2001, 10:11:05 PM

Posted by infryq [send private reply] at August 05, 2001, 02:50:14 AM

AHA!! Figured it out:

#!/bin/bash
ftp -n -v <<EndFTP
#stuff to do, ie open, user, put, get...
EndFTP

Yeah! :) I love unix. oh, and CHollman, yes the HTML is easy... just have to decide whether i want to re-learn perl for educational purposes or just bash it all.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.