Operating System - HP-UX
1834462 Members
2899 Online
110067 Solutions
New Discussion

Re: how to ftp 1000 files without intervention

 
SOLVED
Go to solution
apple
Super Advisor

how to ftp 1000 files without intervention

dear HPUX admin,
would really appreciate you can shed some light on this.
i want to transfer 1000 files, mput * but it requires me to enter or say yes. how can i do this without my keyboard intervention.
hope to hear from you. promise of good points.
12 REPLIES 12
whiteknight
Honored Contributor
Solution

Re: how to ftp 1000 files without intervention


Almond,

ftp>prompt off (this will disable the prompt)
ftp>mput *

this will avoid keyboard intervention.

Hope this help.

WK
don't forget to assign points
Problem never ends, you must know how to fix it
Sajjad Sahir
Honored Contributor

Re: how to ftp 1000 files without intervention

Dear Almond
once u connected with ftp
do prompt 0
this will get inetractive mode off
Jeeshan
Honored Contributor

Re: how to ftp 1000 files without intervention

thats the only answer, you can close this thread.
a warrior never quits
Dennis Handly
Acclaimed Contributor

Re: how to ftp 1000 files without intervention

You can also tar up the 1000 files and transfer that. Of course you must untar on the other side.
apple
Super Advisor

Re: how to ftp 1000 files without intervention

that's great, i wanna give you points, but i have few seconds earlier closed the case. thanks a lot. hv a nice day
Shrikant Lavhate
Esteemed Contributor

Re: how to ftp 1000 files without intervention

You can reopen thread
http://forums11.itrc.hp.com/service/forums/helptips.do?#41

-=ShRi=-
Will it remain a personal, if I broadcast it here!
apple
Super Advisor

Re: how to ftp 1000 files without intervention

dear gurus,
test1 is a directory. i wanna confirm my step:
1. # tar -cvf test1.tar
Attempt to create archive of no files. Nothing dumped.
2. #ls
test1.tar
when i untar
3. tar -xvf test1.tar
Tar: blocksize = 0; broken pipe?

appreciate your advice on my missing steps. i can tar folder right, not neccessary file? thanks a lot
Steven Schweda
Honored Contributor

Re: how to ftp 1000 files without intervention

> 1. # tar -cvf test1.tar

Perhaps more would happen with something
like:

tar -cvf test1.tar test1

> 2. #ls

Try "ls -l" to see how little you got.
apple
Super Advisor

Re: how to ftp 1000 files without intervention

great, want to clarify.
#tar -cvf test.tar test
tar: couldn't get uname for uid 65534
tar: couldn't get uname for uid 65534
a test/test 0 blocks
tar: couldn't get uname for uid 65534
a test/1 0 blocks
tar: couldn't get uname for uid 65534
a test/2 0 blocks

why it says couldn't get uname for uid? but test.tar was successfully created. after that i untar, get the original file. why when i tar the file, it gives me couldn't get uname thing? hope to hear from you
Yogeeraj_1
Honored Contributor

Re: how to ftp 1000 files without intervention

hi

This is just a warning.

The file returning an error is in fact included in the TAR, but tar is just warning you that it has no valid owner attached to it.

The uid attached to the file has no corresponding user in the /etc/passwd
file.

This happen when you delete a user without removing files owned by the latter.

To find the files that tar issues this warning about, you could search for files with uid set equal to 65534 (in your example):

ll -R | grep 65534

To get rid of the warnings, either remove the files, or use the chown commmand to give them a valid owner.


hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Yogeeraj_1
Honored Contributor

Re: how to ftp 1000 files without intervention

hi again,

below the command to change the ownership of the files:

#chown :

username--any username on the system
groupname---any groupname on the system.
filename---name and path of file


You might as well do a:

#chown -R :


hope this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Dennis Handly
Acclaimed Contributor

Re: how to ftp 1000 files without intervention

tar: couldn't get uname for uid 65534
>why it says couldn't get uname for uid?

Does UID of 65534 exist?
This is likely -2, or "nobody".

On my systems, 11.23 or 11.11, I have no problems with either -2 or 65534.
Of course one is in /etc/passwd and the other in NIS.