Visit Our UNIX and Linux User Community


FTP batch file suddenly stopped working


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers FTP batch file suddenly stopped working
# 1  
Old 01-16-2014
[Solved] FTP batch file suddenly stopped working

Hello, we have a UNIX system the runs our business data.

We have 4 users that use a particular batch command file to extract data for use in the Windows side of the fence: (despreg.bat)

Code:
ftp
ftp> open danapak (database name)
connected to danapak
ftp> user ccsb
password ccsb
ftp> getdespreg2056.txt
200 PORT command successful
150 Opening ASCII mode data connection for despreg2056.txt <195 bytes>
226 transfer complete
ftp: 196 bytes received in 0.00Seconds 98.00Kbytes/sec

For some reason, one user's command stops and hangs at the 200 PORT command point, and wont go any further to complete the cycle. Everyone else's works fine. Nothing has changed, it had worked previously up to 1 week ago.

Any experts out there ? the target files haven't been amended or moved on the UNIX system nor has it been touched or re-booted.

Last edited by Don Cragun; 01-16-2014 at 09:08 AM.. Reason: Add CODE tags.
# 2  
Old 01-16-2014
What do you have in the logs?
# 3  
Old 01-16-2014
How and where do I check the log files?
# 4  
Old 01-16-2014
Under winxx I have no idea...(configuration panel -> etc...) before though you w^should try in interactive mode and see if it works!
Unde unix it depends of platform...
# 5  
Old 01-16-2014
These batch files are running on Windows???

Are all 4 users on the same network segment? Or is there something different network wise about the non-working one? Have your network team changed some router or flrewall in the last week?
# 6  
Old 01-16-2014
Yes, all Windows and all on the same Network.

Nothing has changed on the routers or the network - the problem user can still utilise all network drives and use everything as normal.
# 7  
Old 01-16-2014
What version of Windows is the batch file running on?

Two things to try:

1. Switch off the Windows firewall on the non-working machine (just for testing)

and/or

2. Insert the ftp command:

Code:
ftp> quote pasv

between the password line and the get command.

This will switch the ftp session into passive mode (if your Unix box will allow it).
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #957
Difficulty: Medium
Metamorphic code is code that when run outputs a logically equivalent version of its own code under some interpretation.
True or False?

9 More Discussions You Might Find Interesting

1. Solaris

Mailx stopped working

after a new patch set on the 14th. I noticed that mailx stopped working, as far a I can tell that is the only thing that changed. solaris 10 OS it seems everything is the same, sendmail seems to be running root@server # ps -ef | grep -i sendmail smmsp 687 1 0 10:42:25 ? ... (0 Replies)
Discussion started by: goya
0 Replies

2. AIX

Printer stopped working

I have a serial printer connected to a 16 port ran. All of a sudden my printer stopped working and not sure how to get it back. Can anyone help pint me in the write direction? lsdev -Cc printer gives me the following. lp0 Defined 0A-08-11-00 Other serial printer lp1 Defined 0A-08-11-03... (3 Replies)
Discussion started by: Gmanx
3 Replies

3. Shell Programming and Scripting

How to execute a batch file containing ftp commands??

hi, is there a way i can execute a batch file containing ftp commands like we execute sftp batch file. sftp -b batchfile user@server > output how to create a batch file for ftp executing command and how to run the batch file from a shell script? (2 Replies)
Discussion started by: Little
2 Replies

4. Solaris

X86 solaris10 suddenly stopped mounting flashdrive

I can't mount flash drives and dvd drives on my x86 solaris 10. The error message appears after login; sd_media_watch_cb: dev gone. When I issue #mount /usb, it first shows disk is mounted or busy, and '/dev/dsk/c3t0d0p1 - there is no such device or address' when I repeat it. But the... (5 Replies)
Discussion started by: vectrum
5 Replies

5. UNIX for Dummies Questions & Answers

Cleanup job to remove old files suddenly not working

Hi I have a job that has been running for a while with the following statement to cleanup a directory: find /dbmgtu01/app/myplace/log ! \( -name "dc*" -o -name "sc*" -o -name "ms*" \) -type f -mtime +30 -print -exec rm {} \ ; The directory was recently changed to a mount point, with a symbolic... (2 Replies)
Discussion started by: CAGIRL
2 Replies

6. Windows & DOS: Issues & Discussions

Batch file to Get New Files Only through FTP

Hi there I want to create a batch file which Get (mget) the newly added Files only from specific directory on UNIX server to specific folder on windows server using FTP, and this batch file will be scheduled on the windows server to run daily to load the new files (load the newly added files... (1 Reply)
Discussion started by: alsharq
1 Replies

7. Windows & DOS: Issues & Discussions

Batch file to Get New Files Only through FTP

Hi there I want to create a batch file which Get (mget) the newly added Files only, from specific directory on UNIX server to local folder on windows server through FTP, and this batch file will be scheduled to run daily to load the new files. help me plz :confused: (1 Reply)
Discussion started by: alsharq
1 Replies

8. Linux

Cronjobs stopped working

Hi All, I am user of a Linux machine and I have approximatly 15 cronjobs scheduled in my crontab. Yesterday my administrator made LDAP active on my userid and all the things are doing fine after that. But all cronjobs for my user id stored in my crontab have stopped working after that. Could... (1 Reply)
Discussion started by: bisla.yogender
1 Replies

9. UNIX for Dummies Questions & Answers

UNIX Batch FTP Command file

Hello, I am a UNIX newbie and this is my first posting. I need to create a batch command file to ftp from Sun/Solaris to AS/400. Here is an example file: ftp -d -i -n -v 172.28.16.22 pwd ls binary quit This is the result of executing the command file: Connected to... (10 Replies)
Discussion started by: pietro
10 Replies

Featured Tech Videos