Re: Problems with tar (tcllib)
- From: Keith.Pickett@xxxxxxxxx
- Date: 8 Feb 2007 04:08:03 -0800
On Feb 7, 2:22 pm, "Stéphane A." <stephanearn...@xxxxxxxx> wrote:
On 5 fév, 23:47, Keith.Pick...@xxxxxxxxx wrote:
Hello All:
I have a simple script that uses the tcllibtarcommand. Ittar
creates atarfile containing a directory. The directory contains
subdirectories. Each of those sub-directories contain the following
sub-directories:
exec/
export/
server/
lib/
The directory tree looks this way:
devdir_4.1/
subdir1/
exec/
bin/
file1
file2
file3
export/
file1
file2
file3
lib/
file1
file2
file3
server/
bin/
file1
subdir2/
exec/
bin/
file1
file2
file3
export/
file1
file2
file3
lib/
file1
file2
file3
server/
bin/
file1
... etc
The problem I am having is that it is not archiving the exec/
directory. The export/ directory does contain some of the same
executables that are located in the exec/ directory. But, when you do
atartvf on the tarfile that is created, there is one instance of the
exec directory in one of the subdirs, but none of the others. It's as
if the exec/ directory gets passed over.
Here is my script:
#!/usr/bin/tclsh
lappend auto_path /export/kdp/dev/tcl/lib
package requiretar
::tar::create tarball.tardevdir_4.1
Any help would be greatly appreciated.
Maybe permissions were not set right?
Hope it helps.
Stéphane
I received a response via e-mail from Aaron F. requesting the fileset
in question that is being tarred. I couldn't provide original files
because of company proprietary issues, but I dummied up a set of files
with similar directory structure. When I ran my script against that,
things worked perfectly. That kind of tells me I do have a
permissions problem. Even though I put a routine in the script to
change permissions to 777 (just for the fun of it), it didn't seem to
make a difference. Before I put the permission change in the script,
the permissions on the exec/ folder(the one giving all the problems)
were rwxr-xr-x (755). So, i'm at a loss as to why there is a
problem. I was able to get past my problem using an exec command
(just an extra line of code). However, I will post to the tcllib
project site as a bug. Incidentally, i'm using tcllib version 1.9.
Thanks to all for the responses. I will return and report any
solutions to the problem.
.
- Follow-Ups:
- Re: Problems with tar (tcllib)
- From: Larry W. Virden
- Re: Problems with tar (tcllib)
- References:
- Problems with tar (tcllib)
- From: Keith . Pickett
- Re: Problems with tar (tcllib)
- From: Stéphane A.
- Problems with tar (tcllib)
- Prev by Date: Re: Accessing Array Elements within [if-else]
- Next by Date: Re: Accessing Array Elements within [if-else]
- Previous by thread: Re: Problems with tar (tcllib)
- Next by thread: Re: Problems with tar (tcllib)
- Index(es):
Relevant Pages
|
|