[index] [text page] [<<start] [<prev] [next>] [last>>]
Page 26: System Example

Page 26

  
  System Example
  The script:
    $ cat tmpcleaner
    #/usr/bin/perl -w
    #
    # Clean out the files in /tmp
    # Use '-i' so root can decide yes or no.
    use strict;
    
    chdir "/tmp" or die;
    system "rm -i *";
   

Copyright 2003, Bri Hatch of Onsight, Inc.

Presented at SPUG, 2003.

Presentation created using vim and MagicPoint.