- 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
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
тАО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
Re: Perform a copy with very limited command availability
- « Previous
-
- 1
- 2
- Next »