- Timestamp:
- Feb 17, 2011, 3:20:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/ippScripts/scripts/ipp_cleanup.pl
r30546 r30676 1900 1900 { 1901 1901 my $files = shift; # reference to a list of files to unlink 1902 # my $test_verbose = 1; 1903 1904 # if ($test_verbose == 1) { 1905 # open(TMPLOG,">>/tmp/czw.cleanup.log"); 1906 # flock(TMPLOG,2); 1907 # } 1908 1909 # this script is, of course, very dangerous. 1902 1910 1903 foreach my $file (@$files) { 1911 1904 print STDERR "unlinking $stage $stage_id $file"; 1912 unless ($ipprc->file_exists($file)) { 1913 print STDERR "\t File not found\n"; 1914 } 1915 else { 1916 print STDERR "\n"; 1917 } 1918 1919 # if ($test_verbose == 1) { 1920 # print TMPLOG "$stage $stage_id $file"; 1921 1922 # else { 1923 # print TMPLOG "\n"; 1924 # } 1925 # } 1926 1927 $ipprc->file_delete($file); 1928 } 1929 1930 # if ($test_verbose == 1) { 1931 # flock(TMPLOG,8); 1932 # close(TMPLOG); 1933 # } 1905 1906 my $error_code = $ipprc->kill_file($file); 1907 1908 &my_die("failed to kill $file", $stage, $stage_id, $PS_EXIT_CONFIG_ERROR) if $error_code; 1909 } 1934 1910 1935 1911 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.
