bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] GNU tar.exe opens a console window when run from the scrip


From: Venkatesan
Subject: Re: [Bug-tar] GNU tar.exe opens a console window when run from the script
Date: Fri, 28 Jan 2005 15:57:22 +0530

Hi Sergey,
    Thanks for the quick reply. One more question, I tried to run the
tar.exe in Win 98 (which has Msvcft.dll) It does not work. It said
"C:\PROGRA~1\INSTAL~1\TAR.EXE: foo: Could not change access and modifica
tion times: Permission denied" Am I missing something here?

Please see my replies inline..

----- Original Message -----
From: "Sergey Poznyakoff" <address@hidden>
To: "Venkatesan" <address@hidden>
Cc: <address@hidden>
Sent: Thursday, January 27, 2005 2:52 PM
Subject: Re: [Bug-tar] GNU tar.exe opens a console window when run from the
script


> Venkatesan <address@hidden> wrote:
>
> > Hi,
> >     I am evaluating the GNU tar.exe to use in our project. When I run
> > the GNU tar.exe from the script or some external program, it opens a
> > console window and closes it.
>
> GNU tar itself does not open any windows. It is your window manager who
> is responsible for that.

<Venkatesan> Say for example, if you run any java application using the java
command to run any application from the script it will open a command window
and run, but instead if you use javaw it will not open any window it will
run silently at the background. Is there any way to run the tar.exe this
way?
</Venkatesan>

>
> > * Currently GNU tar provides option to extract the file to the current
> > folder or a subfolder in which the tar.exe is executed. Is there any
> > way to direct the output of the extracted files to a different
> > directory which exist in some other location?
>
> Use -C option: tar -C directory -xf archive
>
<Venkatesan> I already tried this -C directory option, but this option
understands only the subdirectory from the current directory. Say for
example if you run tar.exe from c:\x\y\tar -C z -xf foo.tar, then the tar
will be extracted to the z directory which is subdirectory of the directory
y. If I want to extract the foo.tar from "c:\x\y\" to a different location
say "c:\a\b". How do I do this?
</Venkatesan>

> > * Is there any way to change the permission of the file while
> > extracting.
>
> GNU tar provides two options for this purpose: --same-permissions
> and its counterpart --no-same-permissions. See tar documentation for
> details.
<Venkatesan> I am using tar dowonoaed from this link.
http://gnuwin32.sourceforge.net/packages/tar.htm. And seems there is no
option as --no-samp-permission. Got the following error message

D:\bin>tar --no-same-permission -xvf sdm.tar
tar: unrecognized option `--no-same-permission'
Try `tar --help' for more information.

    Am I missing something? Please let me know.


>
> Regards,
> Sergey




reply via email to

[Prev in Thread] Current Thread [Next in Thread]