Operating System - HP-UX
1752666 Members
5486 Online
108788 Solutions
New Discussion юеВ

Re: FTP with No-OverWrite

 
SOLVED
Go to solution
panchpan
Regular Advisor

FTP with No-OverWrite

Hello.
I would like to ftp files from one HP-UX machine to another HP-UX machine. But on destination already many files are present. Is there a way to FTP files with no-overwrite option?

Thank you!
5 REPLIES 5
RAC_1
Honored Contributor

Re: FTP with No-OverWrite

No. Unless destination files have no write perms.
There is no substitute to HARDWORK
panchpan
Regular Advisor

Re: FTP with No-OverWrite

How to make destination files as no-overwrite?
RAC_1
Honored Contributor

Re: FTP with No-OverWrite

Every file on unix has three permissions associated with it. red, write and execute.

To make file un-writable.
chmod ugo-w
man chmod for details.
There is no substitute to HARDWORK
panchpan
Regular Advisor

Re: FTP with No-OverWrite

Many Thanks.
Also, can you please tell me the command of copying or modifying 100 files as filename.old ?

thanks
Peter Godron
Honored Contributor
Solution

Re: FTP with No-OverWrite

Hi,
you may need to use the chmod 444 filename, rather than ogu. You should get a "555 Permission denied".

Example of renaming of files:
for i in `ls *.txt`
do
echo mv $i ${i}.old
done

Once you are happy with the output, remove the echo.