I'm having few doubts with below questions not able figure out the reason:
mput operation used via shell script failed with 550 code return from FTP - "Overwrite cannot be done". ( Having all permissions to this directory ) but why got failed.
When trying to run the script again but now it got failed with 451 error code - " Requested action aborted. Permission denied". why not again with 550 error ?
Now, running the mput manually succeeded - why no overwrite error(550) or permission denied error(451) this time ?
Working with Solaris machine - script will run in ksh shell.
Last edited by rbatte1; 02-06-2015 at 10:54 AM..
Reason: Added LIST=1 tags
Actually I'm trying to re post the file to the remote machine if it fails due some sort of network troubles so I'm capturing a log file for this and using '226' presence in it, if not there re-post the file.
the script tried to re-post the file it threw an overwrite error ( so what it means is we do have a HALF/INCOMPLETE file in remote machine ) right, but when I manually connect to the same remote machine and do the exact same command of mput <filename> present inside the script, it worked fine
the core part of script will be
After the above code having a if loop to check for '226' presence in logfile, if not present then do the same above code again ( this is where I get "Overwrite" error from script but manual try worked )
does has to do something with which shell i'm running it, the machine is set to bash and script is running through ksh. Solaris 5.10 is the version of OS.
I see we do have a command reget for getting a file again from remote machine to local machine like its going to presume from where it stopped. In the same way is there any command to do the opposite of it ie. reput
:::: FTP LOGS ::::
Any help/suggestion will be appreciated !!
Last edited by Don Cragun; 02-06-2015 at 04:36 PM..
Reason: Add CODE tags. Get rid of extra spaces in ICODE tags.
Please DO NOT send private mail to try to get a response to a question in these technical forums.
Robin requested information from you 5 hours ago trying to get information that would help the volunteers here help you solve your problem. Most of the questions Robin asked remain unanswered. Please answer Robin's questions. Help us help you. I would also like to see the permissions on the files in the directory (as well as the permissions the directory itself) for the files you're trying to replace with mput.
This User Gave Thanks to Don Cragun For This Post:
Hi all :D
i' ve a script running on freebsd system:
echo "Start FTP Transfer"
cd /tmp/elaboralog
ftp -i 192.168.27.147 2100 > /tmp/elaboralog/ftp_log_phase2That call .netrc
machine 192.168.27.147
login user
password 12345
macdef backup
binary
cd tmp/elaboralog
mput *-file.txt... (19 Replies)
I want to mput a file without extension, and while doing the mput i want to include the .txt as an extension to the file name. How can i do that? (2 Replies)
Hi,
i got the following error when i tried to access the cygwin x server from a windows XP PC.
"xdmcp fatal error session failed session 23 failed for display"
Alternatively, when i tried to access the same Cygwin X Server from another windows XP PC which is on a different LAN... (3 Replies)
I am ptting the following into an FTOP script.
date=`TZ="aaa24" date +'%Y%m%d'` # this gets Yesterday date
.
.
.
.
mput < 'l | grep $Vdate'
# the idea to grep a listing from a directory that has yesterday date in its file name then put it in the remote FTP server. How can I get it... (4 Replies)
What I want seems to me should be simple but so am I so....
I have a Unix server that is running a program we will say logged in as UserA. The program is outputting a bunch of stuff to the terminal.
I would like to log in from my machine to the server as Either UserA, UserB or if needed... (2 Replies)
Hi,
While I am trying SFTP my machine to another unix machine ,
it was working fine till 10 min back.
But now i am getting the below error
"Request for subsystem 'sftp' failed on channel 0"
Could you please someone help me to solve or analyise the root cause...
Cheers:b:,
Mahiban (0 Replies)
Hi guys,
I'm having a problem with F-Secure Unix.
When I try a simple command;
sftp> put local.test remote.test
I expect that the local file local.test would be copied to the remote file remote.test
However sftp is attempting to copy local.test & remote.test from the local machine, as if... (2 Replies)
1)In this script mput command is not working( not transfering multiple files, it is able to send single file)
2)here is the script to automate the ftp process .
3)for transfering files from one machine to other machine using ftp
can anyone can give me the solution in this issue
Script is... (6 Replies)
I am trying to upload via FTP 11,000 files in a Solaris 8 system. I am using Windows 2000 and its FTP client to upload the files. The command used is mput *.jpg.When the quantity of files reaches 10,000 the upload aborts.
Is this problem related with the FTP client ? If yes, another FTP client... (2 Replies)
hello,
i was interested in knowing if you can mget or mput a sequence of files:
example- say i have a dir with 1000 files with the same extension e.g. *.sgi,
is there a way to mget only the last 200 files?
i would assume that there is a flag i would use, or something like:
mget... (14 Replies)