- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Perform a copy with very limited command avail...
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-27-2007 05:00 AM
09-27-2007 05:00 AM
Bascially, I'm looking to see if anyone with crazy shell skills can copy a file with only the following commands available:
ls
pwd
touch
cd
echo
<
>
|
All other commands (cp, mv, dd, tar, cat, etc, etc) are trying to access the missing 32bit library and core dump. Any way to get the commands to use the 64 bit version of the library (assuming they even can)? The 64bit version of the library was left intact.
I tried the following, but it translated the binary content into ascii or the like:
# echo $(
If not possible I'll recover via Ignite.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:05 AM
09-27-2007 05:05 AM
Re: Perform a copy with very limited command availability
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:05 AM
09-27-2007 05:05 AM
Re: Perform a copy with very limited command availability
file2 < file1
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:09 AM
09-27-2007 05:09 AM
Re: Perform a copy with very limited command availability
;^(
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:14 AM
09-27-2007 05:14 AM
Re: Perform a copy with very limited command availability
Ignite should work just fine, but I've heard that there are ways to do copies in these situations, but have never seen it done. Would be much easier to cp the file back into place then go through the ignite process, though I have a feeling that is where I'll be going.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:20 AM
09-27-2007 05:20 AM
Re: Perform a copy with very limited command availability
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:23 AM
09-27-2007 05:23 AM
Re: Perform a copy with very limited command availability
If so,
dd if=/wherever/dld.so of=/destination/dld.so
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:26 AM
09-27-2007 05:26 AM
Re: Perform a copy with very limited command availability
I doubt it, but if this is the case... then scp might work from another machine...
From remote machine:
scp -p yourhost:/whereever/dld.so yourhost:/usr/lib/hpux32/dld.so
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:27 AM
09-27-2007 05:27 AM
Re: Perform a copy with very limited command availability
I do like the boot of install media idea, but I can sit at my desk and do the Ignite and call it good. No trip to the data center in the Ignite solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:31 AM
09-27-2007 05:31 AM
Re: Perform a copy with very limited command availability
If the solution comes from the shell, it will have to come from the low level commands somehow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:35 AM
09-27-2007 05:35 AM
Re: Perform a copy with very limited command availability
How about :
# /sbin/cat filein > fileout
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:46 AM
09-27-2007 05:46 AM
Re: Perform a copy with very limited command availability
while read -r c
do
echo $c
done < testfile > testout
However, the danged thing is parsing, and doesn't like binaries...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:56 AM
09-27-2007 05:56 AM
Re: Perform a copy with very limited command availability
make sure /sbin is in your PATH and then make sure it is before /usr/bin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 06:06 AM
09-27-2007 06:06 AM
Re: Perform a copy with very limited command availability
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 06:06 AM
09-27-2007 06:06 AM
Re: Perform a copy with very limited command availability
However, there is no /sbin/cp command. There is however a /sbin/mv command.
So, if you use /sbin/mv to move the /usr/lib/hpux32/dld.so back to its appropriate spot, then all should be OK again.
Note, that you don't have to mess with your PATH environment variable if you just give the full path to the command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 06:16 AM
09-27-2007 06:16 AM
Re: Perform a copy with very limited command availability
James R. Ferguson was the first to suggest the pathing issue with /sbin.
I now feel like a complete heel for not seeing this myself in the first place!
I was able to use the cat command as suggested. Both larsoncu and Patrick Wallek realized the same solution. The path assigned by hpux -is and hpux -lm has /sbin last. I was thinking there was some real crazy shell magic, but I'll take any simple soultion!
Many thanks for everyones help with this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 06:24 AM
09-27-2007 06:24 AM
Re: Perform a copy with very limited command availability
>James R. Ferguson was the first to suggest the pathing issue with /sbin
So, do I get a point? :-))
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 06:27 AM
09-27-2007 06:27 AM
Re: Perform a copy with very limited command availability
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 06:31 AM
09-27-2007 06:31 AM