HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Never ending ZIP process ...
Operating System - OpenVMS
        1839869
        Members
    
    
        2247
        Online
    
    
        110156
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              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
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            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
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
	
		
			
            
                
            Go to solution
        
            
		
		
			
            	
	
		
        
		
	
	
		Topic Options
			
				
					
	
			
		
	- 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
10-04-2007 02:07 AM
10-04-2007 02:07 AM
			
				
					
						
							Re: Never ending ZIP process ...
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						> - Create a list of files you want to ZIP.
> Use it by supplying the /BATCH=listfile.txt
> qualifier.
Is that really faster than an equivalent
wildcard, or were you just looking for
finer-grained control over the list?
> - Use the /MOVE qualifier to automatically
> delete the files from disk after they have
> been added to the archive
Zip does try to be careful, but you have more
confidence in this stuff than I. And, I'd
expect one of the more clever DELETE schemes
to be faster at removing the files than Zip.
		
		
	
	
	
> Use it by supplying the /BATCH=listfile.txt
> qualifier.
Is that really faster than an equivalent
wildcard, or were you just looking for
finer-grained control over the list?
> - Use the /MOVE qualifier to automatically
> delete the files from disk after they have
> been added to the archive
Zip does try to be careful, but you have more
confidence in this stuff than I. And, I'd
expect one of the more clever DELETE schemes
to be faster at removing the files than Zip.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 02:21 AM
10-04-2007 02:21 AM
			
				
					
						
							Re: Never ending ZIP process ...
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						I don't think using the list was any faster.  Performing the zip in a temporary directory was the biggest help in that respect.  I renamed three months worth into the temp dir and zipped up a months worth at a time.  There is nothing in the filename to indicate which month it's from, and making ZIP look up dates seemed to me like it would add unnecessary overhead, so using list files was my control over which files to ZIP.
WRT confidence ... ZIP/UNZIP have never let me down (on any platform)! First time for everything I guess.
Cheers,
Art
		
		
	
	
	
WRT confidence ... ZIP/UNZIP have never let me down (on any platform)! First time for everything I guess.
Cheers,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2007 02:02 AM
10-18-2007 02:02 AM
			
				
					
						
							Re: Never ending ZIP process ...
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						fwiw, I seem to have posted an intermediate version of the double rename solution.
Almost right, but not taking from the end towards forwards.
Which was the whole point! Ooops
Here is the corrected example
It's just an example, with some debugging lines still there to help understand it.
Adapt to individual needs and perl quirks trying to help with files and filenames.
Or re-write to something similar in DCL.
See also c.o.v discussion: "Which delete statement is faster? Options "
http://groups.google.com/group/comp.os.vms/browse_thread/thread/cfaed0f141068b51?hl=en#
Hein.
use strict;
#use warnings;
my $HELPER = "[-.tmp_helper]";
my $TARGET = "[-.tmp_renamed]";
my $i = 0;
my @files;
$_ = shift or die "Please provid double quoted wildcard filespec";
print "wild: $_\n";
s/"//g;
my $wild = $_;
foreach (qx(DIRECTORY/COLU=1 $wild)) {
chomp;
$files[$i++] = $_ if /;/;
}
die "Please provide double quoted wildcard filespec" if @files < 2;
# phase 1
$i = @files;
print "Moving $i files to $HELPER\n";
while ($i-- > 0) {
my $name = $files[$i];
my $new = sprintf("%s%06d%s",$HELPER,999999-$i,$name);
print "$name --> $new\n";
rename $name, $new;
}
system ("DIRECTORY $HELPER");
# phase 2
print "Renaming from $HELPER to $TARGET...\n";
while ($i++ < @files) {
my $name = $files[$i];
rename sprintf("%s%06d%s",$HELPER,999999-$i,$name), $TARGET.$name;
}
Hope this help better :-)
Hein.
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
Almost right, but not taking from the end towards forwards.
Which was the whole point! Ooops
Here is the corrected example
It's just an example, with some debugging lines still there to help understand it.
Adapt to individual needs and perl quirks trying to help with files and filenames.
Or re-write to something similar in DCL.
See also c.o.v discussion: "Which delete statement is faster? Options "
http://groups.google.com/group/comp.os.vms/browse_thread/thread/cfaed0f141068b51?hl=en#
Hein.
use strict;
#use warnings;
my $HELPER = "[-.tmp_helper]";
my $TARGET = "[-.tmp_renamed]";
my $i = 0;
my @files;
$_ = shift or die "Please provid double quoted wildcard filespec";
print "wild: $_\n";
s/"//g;
my $wild = $_;
foreach (qx(DIRECTORY/COLU=1 $wild)) {
chomp;
$files[$i++] = $_ if /;/;
}
die "Please provide double quoted wildcard filespec" if @files < 2;
# phase 1
$i = @files;
print "Moving $i files to $HELPER\n";
while ($i-- > 0) {
my $name = $files[$i];
my $new = sprintf("%s%06d%s",$HELPER,999999-$i,$name);
print "$name --> $new\n";
rename $name, $new;
}
system ("DIRECTORY $HELPER");
# phase 2
print "Renaming from $HELPER to $TARGET...\n";
while ($i++ < @files) {
my $name = $files[$i];
rename sprintf("%s%06d%s",$HELPER,999999-$i,$name), $TARGET.$name;
}
Hope this help better :-)
Hein.
- « Previous
- 
						- 1
- 2
 
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP