![]() |
bash ftp in function....
this works fine;
:
ftp -n $FTP_HOST <<FTP_TERMINATEwhereas this doesn't :
checkFtp() {It's about the << in the ftp connection... but hell I need them! how do I escape them? anybody has a clue?! Cheers, Seb. |
fixed;
it turns out the FTP_TERMINATE in the function requires to be at the begining of the line (no \t before) Hope this helps anybody else! Cheers! Seb. |
look up "here document" on google.
|
Oh man!
The more I learn about linux bash programming/scripting... the more I love it! Cheers for your input mate! Seb. |
No substantive post, but I want to commend you for reporting your self-discovered fix for the benefit of the rest of us.
|
| All times are GMT -5. The time now is 8:16 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC