- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- perl on hp11
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
01-20-2003 11:42 PM
01-20-2003 11:42 PM
perl on hp11
i have problem with script below. first script don't work, second - yes. whot is wrong ? when i check this from shell
# tar -tv - i get result
1)
#!/opt/perl5/bin/perl
foreach $a (`/usr/bin/tar -tvf /dev/rmt/0m`)
#i tried (`tar -tv`) too
{
print "$a";
}
2)
#!/opt/perl5/bin/perl
foreach $a (`ps -ef`)
{
print "$a";
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 12:05 AM
01-21-2003 12:05 AM
Re: perl on hp11
On my systeme that run correctly. Have you a tape in the drive ?
If yes what's your output ?
Have you try with a tar file ?
Regards,
Jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 02:03 AM
01-21-2003 02:03 AM
Re: perl on hp11
ioscan -fnkC tape
does the tar work from command line?
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 02:40 AM
01-21-2003 02:40 AM
Re: perl on hp11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 02:43 AM
01-21-2003 02:43 AM
Re: perl on hp11
using backticks in a foreach will complete the command before parsing the returned lines, which will take a looooong time on a long tape.
A more interactive approach would be
--8<---
#!/opt/perl5/bin/perl
use strict;
use warnings;
open my $tape, "tar tvf /dev/rmt/0m |"
select ((select ($tape), $| = 1)[0]);
while (<$tape>) {
print "$_";
}
close $tape;
-->8---
but the time to complete will be the same on the long run.
Also try to have a look at Archive::Tar
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 03:20 AM
01-21-2003 03:20 AM
Re: perl on hp11
Robert