how to start co- process in ftp

  • Follow


I just wana know, how I can start co process running ftp.   


The code below give error:

#!/usr/bin/ksh
Box=bediord7
file=file.txt

function sendfile
{
    echo >&3 "> $*"
    print -p "put $*"   
}


FTP_Connect()
{
        ftp -iv "$Box" |& ftppid=$!                  
}


FTP_Connect   
echo "$ftppid"
cat $file | while read line
    do 
      sendfile $line
    done


It gives following error

No control connection for command: Broken pipe
0
Reply parth002000 7/17/2003 5:26:45 PM


0 Replies
49 Views

(page loaded in 0.283 seconds)

Similiar Articles:













7/24/2012 6:48:03 AM


Reply: