- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Auto File transfer between HP UX server
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-25-2004 08:40 PM
04-25-2004 08:40 PM
How can I do that?
Can some one help?
Best Regards,
Sandeep
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2004 08:45 PM
04-25-2004 08:45 PM
Re: Auto File transfer between HP UX server
Search on this forum for a sample ftp script.
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2004 08:48 PM
04-25-2004 08:48 PM
Re: Auto File transfer between HP UX server
Rsync could do this.
http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/rsync-2.5.7/
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2004 08:48 PM
04-25-2004 08:48 PM
Re: Auto File transfer between HP UX server
tar cvf - . |remsh "(cd dir;tar xvf -)"
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2004 08:49 PM
04-25-2004 08:49 PM
SolutionTo do automatic file transfer you can use either ftp or rcp scripts and schedule the script in cron.
Example script:-
---------------------
ftp -i -n -v RemoteServer << EOF
user unix unix
lcd /LocalDir
put $SERVER.perf
put omnirpt.html
bye
EOF
----------------
man rcp
man ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2004 09:55 PM
04-25-2004 09:55 PM
Re: Auto File transfer between HP UX server
-----------------------
#!/bin/sh
server=svrA
user=oracle
passwd=
INSTANCE=erp
BASEDIR=/bkup
REMOTEDIR=/dbmgmt/bkup
BKUPFILE=$INSTANCE_`date '+%d%m%y'`.bak
echo "open $server" > /tmp/ftpinput
echo "user $user $passwd" >> /tmp/ftpinput
echo "lcd $BASEDIR" >>/tmp/ftpinput
echo "cd $REMOTEDIR" >>/tmp/ftpinput
echo "bin" >>/tmp/ftpinput
echo "hash" >>/tmp/ftpinput
echo "put $BKUPFILE" >>/tmp/ftpinput
echo "bye" >>/tmp/ftpinput
ftp -n
/bin/rm /tmp/ftpinput
-----------------------