In the automated process. due to space in between banking and critical, the below command is not working in the automated process. Can anyone help it out. If I am putting cd banking critical-Bas" and file get ftp'ed. but not through the below line
Last edited by rbatte1; 01-15-2015 at 09:22 AM..
Reason: Added CODE tags and corrected spelling and case
I've not seen ftp called in this way before. The -d flag enables debug, not specify a target directory.
As you don't specify credentials or use a here-document, can I presume that you have created an appropriate record in .netrc giving you an automated connection?
I don't see where you put your file. Can you show us what you do manually and show us the output from your attempts to automate it? We can then try to help a little more.
Please wrap code, files, input and output/errors in CODE tags, like this:-
Quote:
[CODE]This is my code[/CODE]
to produce the following (fixed character width, space respected):-
Not only does it make posts far easier to read, but CODE and ICODE sections respect multiple space and have fixed width characters, which is important for easily seeing input/output requirements.
There has to be a .netrc file for the user or that cannot work at all. There has to be a put or mput command somewhere. We need more information to help you.
As it stands this looks to be impossible for us to give you helpful answers. If files have been going over to the other system this command as shown is not doing it.
in the automated process. due to space in between banking and critical. the below command is not working in the automated process which is scheduled in the maestro scheduler. also the credentials were entered into the .netrc file.. can anyone help it out. if I am putting cd banking critical-Bas" and file get ftp'ed manually its work.
Through maestro .. the ftp job is not submitted through masestro scheduler. I guess due to the space present in the directory
---------- Post updated at 10:16 PM ---------- Previous update was at 09:49 PM ----------
in the automated process. due to space in between banking and critical. the below command is not working in the automated process which is scheduled in the maestro scheduler. also the credentials were entered into the .netrc file.. can anyone help it out. if I am putting cd banking critical-Bas" and file get ftp'ed manually its work.
Through maestro .. the ftp job is not submitted through masestro scheduler. I guess due to the space present in the directory
Can you show us the script that is being called and the parameters it is being called with? If you can paste (in CODE tags) in the errors, we can then try to find out where it's getting lost.
I have logged into ftp and unable to enter into the below directory.
can anyone help me out to enter into the below directory.
ftp> dir
200 Command PORT okay.
150 File status okay; about to open data connection.
drwx------ 0 0 Dec 15 06:39 BANK ISI-Bas
ftp> cd BANK... (5 Replies)
HI Guys,
Issue::
While doing bye command on ftp, it just hings as below untill you try Ctrl+C
891 bytes received in 0.0017 seconds (526.16 Kbytes/s)
ftp> bye
221-You have transferred 0 bytes in 0 files.
I too have tried with other commands like, close, disconnect etc but no luck.
... (1 Reply)
Hi everybody,
I would like to findout a directory or a file which is located at ftp server by connecting with ftp <ip> by using any other linux utility. I tried with find and locate commands in this manner but didnt work. Please help me.
Regards,
Mastan (1 Reply)
Hi we are facing an issue on our server
our job connects to a target server and pulls the file from a location .But it is taking too much time to do this .
Hwne i manully do the ftp it finished in few seconds
.but when the jobs is pulling it is taking 30 to 40 min .
please see the log... (1 Reply)
Hi,
I have installed RHEL 5 on Vmware. I have configured a simple FTP. I am able to transfer and receive files from the vmware-RHEL to my desktop on which vmware is installed and vice-versa. But when i try from other machine in the network it fails. (2 Replies)
Hi again,
I'm using the following shell script via cron to upload the daily log files from my shell to the web server so we can view them online. But somehow logs get corrupted and i don't know what's issue. I would really appreciate for your help please.
Shell Script: ftp.sh
#!/bin/sh... (3 Replies)
Hello all,
FTP times out when I transfer large files. Small files get transffered fine.
small files
--------
-bash-3.1$ ftp -i cldevoradb01
Connected to cldevoradb01.enterprisenet.org.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.... (4 Replies)
I was changing a bit of the existing script and didnt comment the ftp part in it.
So, the ftp step executed, but there was no input file.
I got the message like this
netout: write returned 0?
250 Transfer completed successfully.
What does this mean?. Has the ftp replaced the existing... (1 Reply)
I have tried to ftp from unix to local window machine. I have taken this piece of code from forum and tried ...
#!/bin/ksh
#Usage example: ftpscript sanjit.txt C:/citi/readme.txt
localFile=$1
remoteFile=$2
ftplog=loglog.log
echo "$(date "+%H:%M:%S") - Attempt to FTP $1 to $2" > $ftplog
#... (1 Reply)
folks;
when i manually run this script below, it works fine, but when i run it using a scheduler like "autosys" it doesn't work & i get this error:
ftp: connect: A remote host refused an attempted connect operation
The script:
ftp -n XXX.XXX.XXX.XXX <<- eof
User Pswd
cd xxx/xxxx/xxx... (0 Replies)