Re: file lists and diffs?

2007-05-04 Thread Mathew Snyder
unfortunately, no.  It has predetermined file locations spread across the drive

Mathew

Rodrick Brown wrote:
 On 5/3/07, Mathew Snyder [EMAIL PROTECTED] wrote:
 I have been given a task of installing a piece of backup software,
 then tarring
 up all of the associated files in order to automate the installation
 onto other
 machines.  The only way I can think of doing this is to do an ls -l on
 / and
 then doing a diff after the installation and manually adding those
 files to a
 tar command.

 What I'd rather do is automate this using perl.  gather a list of the
 files,
 perform the installation, getting a list of the new files by way of a
 diff or
 some such and adding all those files to a tar command or some such.

 Has anyone done such a thing or know of a module I should look at to
 achieve this?

 Mathew

 -- 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 http://learn.perl.org/



 
 Can you specify an installation prefix dir? ie /usr/local/mysoftware
 then you can simply use readdir() to get list of files in that
 directory.
 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: file lists and diffs?

2007-05-04 Thread Ken Foskey
On Thu, 2007-05-03 at 22:40 -0400, Mathew Snyder wrote:
 I have been given a task of installing a piece of backup software, then 
 tarring
 up all of the associated files in order to automate the installation onto 
 other
 machines.  The only way I can think of doing this is to do an ls -l on / and
 then doing a diff after the installation and manually adding those files to a
 tar command.
 
 What I'd rather do is automate this using perl.  gather a list of the files,
 perform the installation, getting a list of the new files by way of a diff or
 some such and adding all those files to a tar command or some such.
 
 Has anyone done such a thing or know of a module I should look at to achieve 
 this?

You might want to look at the rsync command rather than rolling your
own.

-- 
Ken Foskey
FOSS developer


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: file lists and diffs?

2007-05-04 Thread Howard Sherman
I think Rodrick's idea is best. But if the
installation process doesn't let you specify an
installation directory, and if it doesn't document
where it's putting the binaries and config files, then
perhaps right after the install you could use the find
command in a manner such as the following:

# find / -xdev -ctime -1 

The output should help guide you as to what got
installed.
--- Rodrick Brown [EMAIL PROTECTED] wrote:

 On 5/3/07, Mathew Snyder [EMAIL PROTECTED]
 wrote:
  I have been given a task of installing a piece of
 backup software, then tarring
  up all of the associated files in order to
 automate the installation onto other
  machines.  The only way I can think of doing this
 is to do an ls -l on / and
  then doing a diff after the installation and
 manually adding those files to a
  tar command.
 
  What I'd rather do is automate this using perl. 
 gather a list of the files,
  perform the installation, getting a list of the
 new files by way of a diff or
  some such and adding all those files to a tar
 command or some such.
 
  Has anyone done such a thing or know of a module I
 should look at to achieve this?
 
  Mathew
 
  --
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  http://learn.perl.org/
 
 
 
 
 Can you specify an installation prefix dir? ie
 /usr/local/mysoftware
 then you can simply use readdir() to get list of
 files in that
 directory.
 
 -- 
 Rodrick R. Brown
 http://www.rodrickbrown.com
 
 -- 
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 http://learn.perl.org/
 
 
 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: file lists and diffs?

2007-05-04 Thread Mathew Snyder
Thanks for all the input.

I've found that the program puts most of its files in one location and only a
few in one other.  I don't actually need to worry about this anymore as the tar
command isn't as long as I thought it would be.

Mathew

Mathew Snyder wrote:
 I have been given a task of installing a piece of backup software, then 
 tarring
 up all of the associated files in order to automate the installation onto 
 other
 machines.  The only way I can think of doing this is to do an ls -l on / and
 then doing a diff after the installation and manually adding those files to a
 tar command.
 
 What I'd rather do is automate this using perl.  gather a list of the files,
 perform the installation, getting a list of the new files by way of a diff or
 some such and adding all those files to a tar command or some such.
 
 Has anyone done such a thing or know of a module I should look at to achieve 
 this?
 
 Mathew
 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




file lists and diffs?

2007-05-03 Thread Mathew Snyder
I have been given a task of installing a piece of backup software, then tarring
up all of the associated files in order to automate the installation onto other
machines.  The only way I can think of doing this is to do an ls -l on / and
then doing a diff after the installation and manually adding those files to a
tar command.

What I'd rather do is automate this using perl.  gather a list of the files,
perform the installation, getting a list of the new files by way of a diff or
some such and adding all those files to a tar command or some such.

Has anyone done such a thing or know of a module I should look at to achieve 
this?

Mathew

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: file lists and diffs?

2007-05-03 Thread Rodrick Brown

On 5/3/07, Mathew Snyder [EMAIL PROTECTED] wrote:

I have been given a task of installing a piece of backup software, then tarring
up all of the associated files in order to automate the installation onto other
machines.  The only way I can think of doing this is to do an ls -l on / and
then doing a diff after the installation and manually adding those files to a
tar command.

What I'd rather do is automate this using perl.  gather a list of the files,
perform the installation, getting a list of the new files by way of a diff or
some such and adding all those files to a tar command or some such.

Has anyone done such a thing or know of a module I should look at to achieve 
this?

Mathew

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/





Can you specify an installation prefix dir? ie /usr/local/mysoftware
then you can simply use readdir() to get list of files in that
directory.

--
Rodrick R. Brown
http://www.rodrickbrown.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/