The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Meta::Utils::Pc - utilities to handle pc junk.

COPYRIGHT

Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

DETAILS

        MANIFEST: Pc.pm
        PROJECT: meta
        VERSION: 0.29

SYNOPSIS

        package foo;
        use Meta::Utils::Pc qw();
        my($clean_text)=Meta::Utils::Pc::clean($pc_data);

DESCRIPTION

This is a library to help you deal with pc junk. This will umount all dirs in a pc, do pc path conversion and the like. This is really a drag because PC's have so little capabilities...

FUNCTIONS

        clean($)
        umount_all($$$)
        umount_all_mult($$$)
        results($$$$)
        make_perl_inte($$$)
        writ_perl_inte($$$$)
        get_temp_dir()
        pc_path($)
        TEST($)

FUNCTION DOCUMENTATION

clean($)

This will split pc output according to lines and put it in an array for you.

umount_all($$$)

This routine received a pc name and umount all mounts on that pc.

umount_all_mult($$$)

This is exactly like the "umount_all" function except the first argument is a list of pc's to umount and this one calls "umount_all" for each of them.

results($$$$)

This routine receives a command to do on the pc and does it,splits the results into lines and returns the array of lines.

make_perl_inte($$$)

This makes a perl interpreter syntax from a command. It is currently quite simple and I hope it will be sufficient. The idea is to simulate a real shell on a handicapped MS windoze pc. The only real tool which is able to do it seems to be perl (and it is certainly sufficient...). The parameters are: 0. comm - the command to be executed (could be a sequence of comma separated commands). 1. file - the file into which to write the interpreter. 2. curr - the current directory. 3. targ - the list of targets which are to be extracted from the pc. 4. tdir - where is the target directory where temp targets could be stored.

writ_perl_inte($$$$)

This writes a perl script out of a command into a file.

get_temp_dir()

This gives you the temporary directory (unix style) of work on a pc.

pc_path()

This converts a unix string into a pc string. (converting the god damn slashes...

TEST($)

Test suite for this module.

SUPER CLASSES

None.

BUGS

None.

AUTHOR

        Name: Mark Veltzer
        Email: mailto:veltzer@cpan.org
        WWW: http://www.veltzer.org
        CPAN id: VELTZER

HISTORY

        0.00 MV initial code brought in
        0.01 MV make quality checks on perl code
        0.02 MV more perl checks
        0.03 MV make Meta::Utils::Opts object oriented
        0.04 MV check that all uses have qw
        0.05 MV fix todo items look in pod documentation
        0.06 MV more on tests/more checks to perl
        0.07 MV introduce docbook into the baseline
        0.08 MV correct die usage
        0.09 MV perl code quality
        0.10 MV more perl quality
        0.11 MV more perl quality
        0.12 MV perl documentation
        0.13 MV more perl quality
        0.14 MV perl qulity code
        0.15 MV more perl code quality
        0.16 MV revision change
        0.17 MV languages.pl test online
        0.18 MV perl packaging
        0.19 MV md5 project
        0.20 MV database
        0.21 MV perl module versions in files
        0.22 MV movies and small fixes
        0.23 MV thumbnail user interface
        0.24 MV more thumbnail issues
        0.25 MV md5 project
        0.26 MV website construction
        0.27 MV web site automation
        0.28 MV SEE ALSO section fix
        0.29 MV md5 issues

SEE ALSO

Meta::Utils::File::File(3), Meta::Utils::Output(3), strict(3)

TODO

Nothing.