- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to Transfer all files in the directory
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
Discussions
Discussions
Forums
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
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-23-2008 11:55 PM
тАО04-23-2008 11:55 PM
How to Transfer all files in the directory
I want to Check for the existence of at least one file in the directory
If at least one file exists transfer each file that exists using NDM.
here is my code:
submit TOWB0033
process
snode=WB0033.TCP
outgoingFilePath="/apps/data"
DirListFiles=$(find $outgoingFilePath -type f -print)
for i in $DirListFiles
do
Filename=${i}
check if (-f $Filename) then
step01 copy from (file=$Filename
pnode)
to (file=$Filename
snode)
eif
done
pend ;
I'm not sure about the syntax of "FOR".
Can anyone plz help me with the code.
Thanks for ur help in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2008 12:49 AM
тАО04-24-2008 12:49 AM
Re: How to Transfer all files in the directory
while read -r filename
do
mv /source /dest/$filename
done < list
Possible better way to go.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2008 01:46 AM
тАО04-24-2008 01:46 AM
Re: How to Transfer all files in the directory
You might get lucky here, but I'd guess that
you'd get better answers about NDM scripts in
some NDM forum somewhere.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2008 03:52 AM
тАО04-24-2008 03:52 AM
Re: How to Transfer all files in the directory
I think the command is NDMRequest.
Maybe there's a man page on NDMRequest? I'd look to see if theres a switch for the command to transfer a directory only if populated with files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2008 03:55 AM
тАО04-24-2008 03:55 AM
Re: How to Transfer all files in the directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2008 05:46 AM
тАО04-24-2008 05:46 AM
Re: How to Transfer all files in the directory
NDM - Network Data Mover.
It's now called Connect:Direct from Sterling Commerce I believe