If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > FTP problems

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-13-04, 10:39
Trauma Trauma is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
FTP problems

I use a zcript that is like this:


# CONFIG OPTIONS
# Working directory. Usually where you extracted it (/home/username/rvsstats
statsfiledir="/home/nicky/public_html/cgi-bin/rvsstats";

# This is the directory where the log files get downloaded too.
serverlogdir="/home/nicky/public_html/cgi-bin/rvsstats/logs";

# Ftp info.
FTPHOST="22.222.222.2";
FTPUSER="*****";
FTPPASS="******";

cd $serverlogdir;
ncftpget -u $FTPUSER -p $FTPPASS -v $FTPHOST -DD . '*./.log'
cd $statsfiledir;
sleep 5
$statsfiledir/rvsstats_1_7_0.pl


the script execute and connect to the ftp i got at home on a windows xp computer.
But i get error like this from my ftp:


13/02/2004/16:30:14 ! 62.70.0.24 connected
Detail-LOG: Key: USER Parameter: *******
Detail-LOG: Key: PASS Parameter: ******
13/02/2004/16:30:14 User: rvsstats IP: 62.70.0.24 logged in.
Detail-LOG: Key: PWD Parameter:
Detail-LOG: Key: FEAT Parameter:
Detail-LOG: Key: HELP Parameter: SITE
Detail-LOG: Key: CLNT Parameter: NcFTPGet 3.1.3 linux-x86
Detail-LOG: Key: PASV Parameter:
User **.**.**.** tried to LIST a path not allowed. Path modified!
Detail-LOG: Key: NLST Parameter: Sock 2.0
13/02/2004/16:35:14 ! User: rvsstats IP: **.**.**.** disconnected


and i get an error from my site like this:

ncftpget .: no error.
Data connection timed out.
Could not read directory listing data: Connection timed outCould not read reply from control connection -- timed out.
ncftpget *./.log: remote directory listing failed.
file is empty
exiting.....


and some times i get: "can not find files." or something like that

even there is files there.


I really need help with this, is it my ftp on my home computer?
I have tried many different ones.
Or is it the script that need some improvment to connect to my ftp.

I can access and delete and all that stuff from a remote computer.
But the script dont work on it.
I use a router, but i have redirected it all to the server i got.

Please help.

Last edited by Trauma; 02-13-04 at 10:42.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On