- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Remote installation script
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
09-28-2005 10:30 PM
09-28-2005 10:30 PM
Remote installation script
I want to untar a tar file into a remote machine through a script.
Tar file is in a directory named /testing in the remote machine and it has to be untared in /usr/local.
Thanks in advance !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 10:42 PM
09-28-2005 10:42 PM
Re: Remote installation script
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 10:54 PM
09-28-2005 10:54 PM
Re: Remote installation script
Try to use tar command with ssh.
tar -cf - /some/file | ssh host.name tar -xf - -C /destination
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 11:09 PM
09-28-2005 11:09 PM
Re: Remote installation script
# remsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 12:27 AM
09-29-2005 12:27 AM
Re: Remote installation script
tar -pcvf - * | remsh server "cd /path ; tar -xvf -"
Thanks,
BL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 01:07 AM
09-29-2005 01:07 AM
Re: Remote installation script
At local server run the script :
########################################
# untar tar file into a remote server.
########################################
tar -cvf testing.tar /testing
scp testing.tar remote_svr:/usr/local/
ssh remote_svr "cd /usr/local ; tar -xvf testing.tar"
echo " untar done .. pls check remote server /usr/local/testing/ directory "
########################################
Note: If ssh keygen is set , it can be done without interuption. Else need to provide passowrd as it prompts.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 07:16 AM
09-29-2005 07:16 AM
Re: Remote installation script
You can use one of the convenient methods mentioned above. But how your tar archive was created?
It is always good to create tar archives with relative path. When you have to restore a file to other location it can be done easily with such files.
Best Regards,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 12:29 AM
09-30-2005 12:29 AM