- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to transfer files and its sub-directories thro...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 05:27 PM
04-11-2005 05:27 PM
I have written a korn shell automated script which only transfer files, but how do I transfer all the subdirectories in the filesystem.
Any help would be greatly appreciated. Below is my script.
#!/usr/bin/ksh
cd /FILESYSTEM_NAME
USER=root
PASS=1234
MACHINE=hostname
FTP=/usr/bin/ftp
$FTP -n $MACHINE <
user $USER $PASS
ascii
cd /FILESYSTEM_NAME
mput *
The above script works fine, but what do i need to do in the script so it transfer all the files in the subdirectories of /FILESYSTEM_NAME. Please advise
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 05:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 05:42 PM
04-11-2005 05:42 PM
Re: How to transfer files and its sub-directories through ftp
Thanks for your reply Kapil, I have set up rcp to transfer files and its been working O.K, however this morning when i tried running rcp command it failed with an error messgae "rcmd: primary connection shut down".
rcp command failed with the above error message. I have refreshed rpcd daemon but no difference...
My other query is, how to create a nfs connection b/w hp machines?
Thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 05:48 PM
04-11-2005 05:48 PM
Re: How to transfer files and its sub-directories through ftp
You have to set up an NFS server, export the directories and set up an NFS client and mount the exported directories.
http://docs.hp.com/en/5991-1153/index.html
is the HP Documentation for setting up NFS server.
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 06:02 PM
04-11-2005 06:02 PM
Re: How to transfer files and its sub-directories through ftp
http://hpux.connect.org.uk/hppd/hpux/Networking/FTP/ncftp-3.1.8/
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 06:02 PM
04-11-2005 06:02 PM
Re: How to transfer files and its sub-directories through ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2005 12:59 PM
04-12-2005 12:59 PM
Re: How to transfer files and its sub-directories through ftp
Just need help, I have exported a filesystem with this command 'exportfs -i -o rw=hostname filesystem_name', now on the remote machine how do i mount this filesystem, as there is already a filesystem mounted with the same name on remote machine..
I suppose i can mount this exported filesystem somewhere else on the remote machine but what would be the appropriate command, please advise,
cheers,
Raf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2005 06:43 PM
04-12-2005 06:43 PM
Re: How to transfer files and its sub-directories through ftp
you can:
create new directory in /
mount -F
so for example:
if you want to mount directory fred from server test to directory ted on you machine
mkdir /ted
mount -F nfs test:/fred /ted
Please also have a look at :
man 1m mount
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2005 06:54 PM
04-12-2005 06:54 PM
Re: How to transfer files and its sub-directories through ftp
your help would be appreciated..cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2005 07:01 PM
04-12-2005 07:01 PM
Re: How to transfer files and its sub-directories through ftp
you have to be set up on the remote machine (see man rcp).
" The current local user name or any user name specified via ruser must exist on rhost and allow remote command execution via remsh(1) and rcmd(3N). remshd(1M) must be executable on the remote host."
Also see
http://forums1.itrc.hp.com/service/forums/helptips.do?#34
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2005 08:53 PM
04-12-2005 08:53 PM
Re: How to transfer files and its sub-directories through ftp
# NFS-Server
vi /etc/rc.config.d/nfsconf
/sbin/init.d/nfs.server start
vi /etc/exports # zu exportierende FS spezifizieren
showmount -e; exportfs(; rpcinfo -p; nfsstat) # testing NFS
# NFS-Client
vi /etc/rc.config.d/nfsconf
/sbin/init.d/nfs.client start
mount
vi /etc/fstab
showmount -e svr; rpcinfo -p [svr] # testing NFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 01:25 AM
04-13-2005 01:25 AM
Re: How to transfer files and its sub-directories through ftp
If your sub directories are fixed, you can hard code those in your script, change directory and transfer file. Even, if the sub directories are not fixed you can get the name of those subdirectories and dynamically create your script. This should work.
In your script you have used mput*. Is it not prompting you before sending each file ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 11:07 AM
04-13-2005 11:07 AM
Re: How to transfer files and its sub-directories through ftp
In relation to my second query, rcp works O.K sometimes but it doesn't work sometimes and fails with the an error message "rcmd: primary connection shut down", its all setup in the remote host's .rhost and hosts.equiv files, it just works sometimes and sometimes it doesn't.
I'm doing a bit of research on this but any help would be great on the above issues.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 11:15 AM
04-13-2005 11:15 AM
Re: How to transfer files and its sub-directories through ftp
>I have exported the filesystem with read and write
> option with the exportfs command, what else needs
> to be done so I can atleast see the contents of the
> exported filesystem on a client machine?
Once you export the filesystem in the server, you
need to mount the filesystem in the client to be able
to see it. Easiest way to do this would be to run
SAM, go to "Networking And Communications" ->
"Networked Filesystem" -> "Mounted remote
file systems". Click on "Action" and "Add remote
filesystem".
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 11:28 AM
04-13-2005 11:28 AM
Re: How to transfer files and its sub-directories through ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 12:12 PM
04-13-2005 12:12 PM
Re: How to transfer files and its sub-directories through ftp
Cheers