Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Nov 15th, 2006, 8:49 PM   #1
Ryders
Newbie
 
Join Date: Nov 2006
Posts: 3
Rep Power: 0 Ryders is on a distinguished road
bash ftp in function....

this works fine;

        ftp -n $FTP_HOST <<FTP_TERMINATE
        quote USER $FTP_USER
        quote PASS $FTP_PASS
        bye
        FTP_TERMINATE
        exit 0;

whereas this doesn't

checkFtp() {

        ftp -n $FTP_HOST <<FTP_TERMINATE
        quote USER $FTP_USER
        quote PASS $FTP_PASS
        bye
        FTP_TERMINATE
        exit 0;

}

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.

Last edited by Ryders; Nov 15th, 2006 at 8:50 PM. Reason: typos..
Ryders is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining languages titaniumdecoy Other Programming Languages 12 Jul 13th, 2006 2:03 PM
Compiling Maverik 6.2 (from C) megamind5005 C 16 May 3rd, 2006 5:41 PM
libraries matko C 1 Jan 22nd, 2006 2:12 PM
Jackpot game zorin Visual Basic 3 Jun 10th, 2005 1:19 PM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 4:12 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:43 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC