Ah cool I didn't know that. I was trying to come upwith words in my head that would make sence.
Thanks. Sarah the non unix user until now. lol On Apr 9, 2010, at 4:43 PM, mani wrote: > Sarah: > Do you still have a problem or is this an older post? > > You inquired about the EOF in an earlier post. EOF is just a token, > signaling the script to read from the standard input until it > encounters that token. Hence the EOF again in the last line. > > HTH, > mani > > > On Apr 9, 4:34 pm, Sarah Alawami <[email protected]> wrote: >>> I would like to thank everyone who helped. after much hair pulling i got it >>> to work. >> >> 1. make my script in the usual way but the file is just for entering in ftp >> commands. >> >> 2. this is where I got stuck. >> >> open the .netrc file in the terminal. >> open -a TextEdit.app ~/.netrc >> >> and put this in the .netrc >> file. >> machine ftpaddress log in userstring password passwordstring >> >> leave a blank line between the entries and you are good to go. >> >> 3. Now in the terminal type ftp ftpaddress and it should log you in. >> >> Take care. >> >> S >> >> On Apr 8, 2010, at 12:43 PM, Chris Blouch wrote: >> >> >> >>> After a little googling and testing, this worked: >> >>> ftp -n server_name <<EOF >>> quote user cblouch >>> quote pass xxxxxx >>> binary >>> put filename.xyz >>> quit >> >>> Of course you would put in your own server anme, username and password. I >>> just put this in a text file and then did a chmod a+x to make it >>> executable. Then I just did ./test_file to run my test file. >> >>> Hope this helps. >> >>> CB >> >>> mani wrote: >> >>>> If you don't mind, can you send me the script, as is, again? Of >>>> course without the original userid and password. >>>> You can send it to me offline if you wish. >>>> Thanks, >>>> mani >> >>>> On Apr 7, 10:13 pm, Sarah Alawami <[email protected]> wrote: >> >>>>> no go. I did not even connect this time. >> >>>>> Growl! >>>>> On Apr 7, 2010, at 7:03 PM, mani wrote: >> >>>>>> Oh no! I know this is frustrating but can you try one last thing: >> >>>>>> ftp >>>>>> open ftpstring >>>>>> user userstring passwordstring >>>>>> ... >>>>>> ... >> >>>>>> I hope this works. Once you solve this, can you tell me what the fix >>>>>> was? :) >> >>>>>> mani >> >>>>>> On Apr 7, 9:55 pm, Sarah Alawami <[email protected]> wrote: >> >>>>>>> I tried both ways with and with out the colen, even an equals sign >>>>>>> between things and still no go. >>>>>>> On Apr 7, 2010, at 6:44 PM, mani wrote: >> >>>>>>>> I am assuming you don't have the colon character after the user in all >>>>>>>> the solutions I proposed. >> >>>>>>>> mani >>>>>>>> On Apr 7, 9:36 pm, Sarah Alawami <[email protected]> wrote: >> >>>>>>>>> still no go. I still got tha todd message. it is like it is not >>>>>>>>> seeing the username or pasword strings I type in. I don't want ot >>>>>>>>> type them in by hand each time hence why I'm trying to make the batch >>>>>>>>> file. It is saved right according to the google article I found. it >>>>>>>>> was a post on a blog. >> >>>>>>>>> Take care. >>>>>>>>> On Apr 7, 2010, at 6:11 PM, mani wrote: >> >>>>>>>>>> Sarah: >>>>>>>>>> Can you try >> >>>>>>>>>> user userstring passwordstring >>>>>>>>>> bin >>>>>>>>>> ... >> >>>>>>>>>> Thanks, >>>>>>>>>> mani >> >>>>>>>>>> On Apr 7, 8:45 pm, Sarah Alawami <[email protected]> wrote: >> >>>>>>>>>>> Ok I tried everything I could think of and this comes up on the >>>>>>>>>>> terminal. >> >>>>>>>>>>> ftp.podbean >>>>>>>>>>> Connected to ftphost >>>>>>>>>>> 220 "welcome to ftphostFTP service" >>>>>>>>>>> Name (ftp7.podbean.com:sarahalawami): >> >>>>>>>>>>> I left the last thing in tact as it looked very odd. >> >>>>>>>>>>> I think I'm close but I can't put my finger on what oculd be worng. >> >>>>>>>>>>> Take care. >> >>>>>>>>>>> S >>>>>>>>>>> On Apr 7, 2010, at 5:16 PM, mani wrote: >> >>>>>>>>>>>> Sarah: >>>>>>>>>>>> I think you have to do: >> >>>>>>>>>>>> ftp ftpaddressstring >>>>>>>>>>>> user: usernamestring >>>>>>>>>>>> passwordstring >>>>>>>>>>>> ... >>>>>>>>>>>> ... >> >>>>>>>>>>>> HTH, >>>>>>>>>>>> Thanks, >>>>>>>>>>>> mani >> >>>>>>>>>>>> On Apr 7, 8:02 pm, Ben Mustill-Rose <[email protected]> wrote: >> >>>>>>>>>>>>> Just a stab in the dark, but where you have >>>>>>>>>>>>> ftp ftpstring >>>>>>>>>>>>> have you tryed >>>>>>>>>>>>> ftp user:passw...@url >> >>>>>>>>>>>>> Someone correct me if I've got the syntax wrong, its been a while. >> >>>>>>>>>>>>> On 08/04/2010, Sarah Alawami <[email protected]> wrote: >> >>>>>>>>>>>>>> Hello to all. >> >>>>>>>>>>>>>> I'm making a btch script to connect ot an ftp server. I'm very >>>>>>>>>>>>>> close but it >>>>>>>>>>>>>> would not type in the username and pass even thoug it is there. >>>>>>>>>>>>>> here is the >>>>>>>>>>>>>> script omiting the address usernamd and password. >> >>>>>>>>>>>>>> Take Am I doing something wrong here? >> >>>>>>>>>>>>>> ftp ftpaddressstring >>>>>>>>>>>>>> user: usernamestring >>>>>>>>>>>>>> password passwordstring >>>>>>>>>>>>>> bin >>>>>>>>>>>>>> lcd desktop >> >>>>>>>>>>>>>> am I missing something here? sory about the odd info I filled in >>>>>>>>>>>>>> there >>>>>>>>>>>>>> places but yeah. >> >>>>>>>>>>>>>> Thanks. and I am close I just don't know what I'm doing wring. >> >>>>>>>>>>>>>> Thanks. >> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> You received this message because you are subscribed to the >>>>>>>>>>>>>> Google Groups >>>>>>>>>>>>>> "MacVisionaries" group. >>>>>>>>>>>>>> To post to this group, send email to >>>>>>>>>>>>>> [email protected]. >>>>>>>>>>>>>> To unsubscribe from this group, send email to >>>>>>>>>>>>>> [email protected]. >>>>>>>>>>>>>> For more options, visit this group at >>>>>>>>>>>>>> http://groups.google.com/group/macvisionaries?hl=en. >> >>>>>>>>>>>> -- >>>>>>>>>>>> You received this message because you are subscribed to the Google >>>>>>>>>>>> Groups "MacVisionaries" group. >>>>>>>>>>>> To post to this group, send email to >>>>>>>>>>>> [email protected]. >>>>>>>>>>>> To unsubscribe from this group, send email to >>>>>>>>>>>> [email protected]. >>>>>>>>>>>> For more options, visit this group >>>>>>>>>>>> athttp://groups.google.com/group/macvisionaries?hl=en. >> >>>>>>>>>> -- >>>>>>>>>> You received this message because you are subscribed to the Google >>>>>>>>>> Groups "MacVisionaries" group. >>>>>>>>>> To post to this group, send email to [email protected]. >>>>>>>>>> To unsubscribe from this group, send email to >>>>>>>>>> [email protected]. >>>>>>>>>> For more options, visit this group >>>>>>>>>> athttp://groups.google.com/group/macvisionaries?hl=en. >> >>>>>>>> -- >>>>>>>> You received this message because you are subscribed to the Google >>>>>>>> Groups "MacVisionaries" group. >>>>>>>> To post to this group, send email to [email protected]. >>>>>>>> To unsubscribe from this group, send email to >>>>>>>> [email protected]. >>>>>>>> For more options, visit this group >>>>>>>> athttp://groups.google.com/group/macvisionaries?hl=en. >> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "MacVisionaries" group. >>>>>> To post to this group, send email to [email protected]. >>>>>> To unsubscribe from this group, send email to >>>>>> [email protected]. >>>>>> For more options, visit this group >>>>>> athttp://groups.google.com/group/macvisionaries?hl=en. >> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "MacVisionaries" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group >>> athttp://groups.google.com/group/macvisionaries?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "MacVisionaries" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/macvisionaries?hl=en. > -- You received this message because you are subscribed to the Google Groups "MacVisionaries" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/macvisionaries?hl=en.
