I don't think this will work out, ftp command will always end successfully after you enter quit at ftp prompt. How could you check the exit status of ftp command to identify whether the file transimission was successful.
It won't work as far as i have tested. The proper way is to check the ftp logs and check for the error code in the log. You have checck for error codes starting from 300 - 599 for any errors.
Quote:
I have added the below code in my script and when the file was uploading we are getting success mail and even when the file was not uploaded also we are getting the same success mail .
Please try this, add the below line before the if condition and just after the END_SCRIPT,
Hi!
I'd like to upload a complete folder with subfolders with put. At the moment I always get the err-msg:
aboutme: not a plain file
Could anyone help me??
Thanx (3 Replies)
I have a ftp server up , however when I upload a file from my desktop to the server I get this message:
ftp> get uploadtest.txt
Local: uploadtest.txt Remote: uploadtest.txt
227 passive Mode ( 192,168,0,1,190,75)
550 Failed to open file
ftp> (3 Replies)
Hi ,
By status requests to the printer using the PJL commands like status_read_back there is no answer. The printer itself is functioning well and is printing all requests. Ping, lpstat -t, nslookup is functioning well. The printer model is HP LJ 4200. The printer has been configured as network... (1 Reply)
Hi ,
i have three server
server1 -> Unix OS ,ftp enable IP ->10.8.219.190
server 2 -> Unix OS ,ftp enable
NIC 1 IP ->10.8.219.191 ,NIC2 ->192.168.0.5
server3 -> windows OS ,ftp enable NIC1 ->192.168.0.6.
hence server 1 and server 3 can not communicate ,but server 2 can... (1 Reply)
Hi ,
I want to upload some files from my desktop to unix server through FTP . The list of files are in a text file .Please suggest how to do it through scrip .
Thanks in advance ..
Anupam (8 Replies)
Hello everyone,
sorry for the title, most of you must getting sick of reading something like
this, but I haven't found a solution, although I found many threads according
to it.
I'm working on a bash script that connects to a network printer with ftp
where I want to upload a pdf created... (3 Replies)
Can any one help in writing FTP upload script using bash ..
with specific port
-oPort=62022
#/bin/bash
FTPU="username" # ftp login name
FTPP="password" # ftp password
FTPS="localhost.com" # remote ftp server
FTPF="/test" # remote ftp server directory for $FTPU & $FTPP
port="2345"... (3 Replies)
HI,
I need a script to find new files that created after 6:00 from /home/ugh /demo/conn /UAT/d01 and upload them into ftp server according to system date:
Please help me (1 Reply)
Hi,
I'm aware that this question has been raised earlier and the solution provided has not helped me. So, the issue is that I'm trying to set a defumask to files transferred via ftp to be 002 so that the group may have write permissions to the files uploaded. We have local/system users... (5 Replies)
Hi,
I want to create a script that parses the content of a file (on each line there is a filename with full path containing the latest fiels created on that day) and uploads every file to a ftp location.
Any elegant way to do it ? (4 Replies)