Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You enjoy the company of other people.


comp / comp.os.linux.misc / Re: tar problem

SubjectAuthor
* tar problemdb
+* Re: tar problemdb
|`* Re: tar problemLew Pitcher
| `* Path and/or alias findingCarlos E.R.
|  +* Re: Path and/or alias findingRobert Heller
|  |+* Re: Path and/or alias findingLew Pitcher
|  ||+- Re: Path and/or alias findingCarlos E.R.
|  ||+- Re: Path and/or alias findingLew Pitcher
|  ||+- Re: Path and/or alias findingLawrence D'Oliveiro
|  ||`- Re: Path and/or alias findingLawrence D'Oliveiro
|  |+- Re: Path and/or alias findingCarlos E.R.
|  |+- Re: Path and/or alias findingLawrence D'Oliveiro
|  |`- Re: Path and/or alias findingLawrence D'Oliveiro
|  `* Re: Path and/or alias findingJohn-Paul Stewart
|   `* Re: Path and/or alias findingCarlos E.R.
|    +- Re: Path and/or alias findingLawrence D'Oliveiro
|    `- Re: Path and/or alias findingLawrence D'Oliveiro
+* Re: tar problemRichard Kettlewell
|`* Re: tar problemRobert Heller
| +* Re: tar problemdb
| |`* Re: tar problemLew Pitcher
| | `* Re: tar problemCarlos E. R.
| |  `* Re: tar problemLew Pitcher
| |   `* Re: tar problemCarlos E. R.
| |    `* Re: tar problemdb
| |     `* Re: tar problemRich
| |      +* Re: tar problemdb
| |      |`* Re: tar problemRalf Fassel
| |      | `* Re: tar problemRichard Kettlewell
| |      |  +- Re: tar problemCarlos E. R.
| |      |  +- Re: tar problemRalf Fassel
| |      |  `* Re: tar problemRobert Heller
| |      |   `- Re: tar problemRichard Kettlewell
| |      `- Re: tar problemLew Pitcher
| `- Re: tar problemcandycanearter07
+* Re: tar problemMarc Olschok
|`- Re: tar problemRobert Heller
+- Re: tar problemmarrgol
+* Re: tar problemLew Pitcher
|+- Re: tar problemdb
|`- Re: tar problemCarlos E. R.
+- Re: tar problemLew Pitcher
`- Re: tar problemMarco Moock

Pages:12
Subject: tar problem
From: db
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 9 Jun 2024 14:36 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.os.linux.misc
Subject: tar problem
Date: Sun, 9 Jun 2024 14:36:49 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <v44em0$3i8j8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 09 Jun 2024 16:36:49 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b236468cdbfaee0f48e2f1d7ef35d671";
logging-data="3744360"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bXhyIjjk2TvT1KpohKPUwLFq/MvMtAmo="
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Cancel-Lock: sha1:FWS6kVK1j/3Fhrcx6BM0rJkPzcA=
View all headers

I like to make life easy so I wrote a one-line script
for extracting the contents of a tar file. I copied it
into the /bin directory so I can run it from anywhere.
I tried it out in a test directory where I had it, and
where there is a small test tar file. Here is the dialogue
from running it, using both the local script and the one
in /bin:

~/tartest> ls
tarx test.tar.gz
~/tartest> cat tarx
tar -xf $1.tar.gz
~/tartest> cat ~/bin/tarx
tar -xf $1.tar.gz
~/tartest> ./tarx test
~/tartest> ls
tarx test test.tar.gz
~/tartest> del -r test
~/tartest> tarx test
tar (child): test: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

Why doesn't it work from bin/ ?

--
db

Subject: Re: tar problem
From: Marco Moock
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 9 Jun 2024 15:28 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usenet-es@dorfdsl.de (Marco Moock)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Sun, 9 Jun 2024 17:28:38 +0200
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <v44hn7$3i2s5$1@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 09 Jun 2024 17:28:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1b5b5206f0753106e3c304b88abbf5f3";
logging-data="3738501"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18v8B/13/ZyZK05m6BwgUij"
Cancel-Lock: sha1:exnlnWMn5Usbvy2OIWQB54f80C0=
View all headers

On 09.06.2024 um 14:36 Uhr db wrote:

> Why doesn't it work from bin/ ?

Can you run it with bash -x?
Maybe the path isn't passed as a fullpath.

--
kind regards
Marco

Send spam to 1717936609muell@cartoonies.org

Subject: Re: tar problem
From: Lew Pitcher
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 9 Jun 2024 16:01 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Sun, 9 Jun 2024 16:01:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <v44jkh$3garl$1@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 09 Jun 2024 18:01:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b333512c8a60332dc231a0533152c853";
logging-data="3681141"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+651Zhq/Dc48eVRQlkhbo9axWMGUdV+gU="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:W8U9GcZ1i5jdYmZQkTPz6MmDbr8=
View all headers

On Sun, 09 Jun 2024 14:36:49 +0000, db wrote:

> I like to make life easy so I wrote a one-line script
> for extracting the contents of a tar file. I copied it
> into the /bin directory so I can run it from anywhere.
> I tried it out in a test directory where I had it, and
> where there is a small test tar file. Here is the dialogue
> from running it, using both the local script and the one
> in /bin:
>
> ~/tartest> ls
> tarx test.tar.gz
> ~/tartest> cat tarx
> tar -xf $1.tar.gz
> ~/tartest> cat ~/bin/tarx
> tar -xf $1.tar.gz
> ~/tartest> ./tarx test
> ~/tartest> ls
> tarx test test.tar.gz
> ~/tartest> del -r test
> ~/tartest> tarx test
> tar (child): test: Cannot open: No such file or directory
> tar (child): Error is not recoverable: exiting now
> tar: Child returned status 2
> tar: Error is not recoverable: exiting now
>
> Why doesn't it work from bin/ ?

Are you certain that you are running the right tarx?

What does your $PATH look like? Is there a tarx executable
in any of the directories /before/ your ~/bin in your PATH?
If so, what do /they/ look like?

--
Lew Pitcher
"In Skills We Trust"

Subject: Re: tar problem
From: Richard Kettlewell
Newsgroups: comp.os.linux.misc
Organization: terraraq NNTP server
Date: Sun, 9 Jun 2024 17:22 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Sun, 09 Jun 2024 18:22:38 +0100
Organization: terraraq NNTP server
Message-ID: <wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
References: <v44em0$3i8j8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="71676"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:u/W1sWJdWNQxSkZsDbVXrdyvjUk=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
View all headers

db <dieterhansbritz@gmail.com> writes:
> I like to make life easy so I wrote a one-line script
> for extracting the contents of a tar file. I copied it
> into the /bin directory so I can run it from anywhere.
> I tried it out in a test directory where I had it, and
> where there is a small test tar file. Here is the dialogue
> from running it, using both the local script and the one
> in /bin:
>
> ~/tartest> ls
> tarx test.tar.gz
> ~/tartest> cat tarx
> tar -xf $1.tar.gz
> ~/tartest> cat ~/bin/tarx
> tar -xf $1.tar.gz
> ~/tartest> ./tarx test
> ~/tartest> ls
> tarx test test.tar.gz
> ~/tartest> del -r test
> ~/tartest> tarx test
> tar (child): test: Cannot open: No such file or directory
> tar (child): Error is not recoverable: exiting now
> tar: Child returned status 2
> tar: Error is not recoverable: exiting now
>
> Why doesn't it work from bin/ ?

Probably /bin/tarx isn’t the same as ./tarx. What does
cat /bin/tarx
show?

--
https://www.greenend.org.uk/rjk/

Subject: Re: tar problem
From: Robert Heller
Newsgroups: comp.os.linux.misc
Organization: Deepwoods Software
Date: Sun, 9 Jun 2024 19:12 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-4.nntp.ord.giganews.com!nntp.giganews.com!local-4.nntp.ord.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 09 Jun 2024 19:12:52 +0000
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.17)
Subject: Re: tar problem
In-Reply-To: <wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
Newsgroups: comp.os.linux.misc
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com>
Date: Sun, 09 Jun 2024 19:12:52 +0000
Lines: 54
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-jNadpLvSimJc9yFHPjnBGUDuRWlGJoqsBd3UaoVS92KFQW2mw+7JrD+U9YWMky9tM5fDpZUg+/xLpCN!9/hyA0+/dZiOz0gZuOq3F7BUehFjpqR9zjE2WOrlMe92d8dxSgfa78PR9tpUkxFfx98OsC/jNzNm!/dI=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

At Sun, 09 Jun 2024 18:22:38 +0100 Richard Kettlewell <invalid@invalid.invalid> wrote:

>
> db <dieterhansbritz@gmail.com> writes:
> > I like to make life easy so I wrote a one-line script
> > for extracting the contents of a tar file. I copied it
> > into the /bin directory so I can run it from anywhere.
> > I tried it out in a test directory where I had it, and
> > where there is a small test tar file. Here is the dialogue
> > from running it, using both the local script and the one
> > in /bin:
> >
> > ~/tartest> ls
> > tarx test.tar.gz
> > ~/tartest> cat tarx
> > tar -xf $1.tar.gz
> > ~/tartest> cat ~/bin/tarx
> > tar -xf $1.tar.gz
> > ~/tartest> ./tarx test
> > ~/tartest> ls
> > tarx test test.tar.gz
> > ~/tartest> del -r test
> > ~/tartest> tarx test
> > tar (child): test: Cannot open: No such file or directory
> > tar (child): Error is not recoverable: exiting now
> > tar: Child returned status 2
> > tar: Error is not recoverable: exiting now
> >
> > Why doesn't it work from bin/ ?

What does 'which tarx' show? Does it show /bin/tarx?

Note: you should *never* put random programs in /bin (or even /usr/bin). The
only programs/files in these directories should be ones installed by your
package management system. /bin is reserved for core / early boot programs
and others would be in /usr/bin.

Locally provided programs should be in either /usr/local/bin or /opt/bin
(depending on your file system usage philosiphy). These directories
can/should be added to your $PATH. *Personally* provided programs should be
in $HOME/bin, and this directory can be added to your $PATH as well.

>
> Probably /bin/tarx isn't the same as ./tarx. What does
> cat /bin/tarx
> show?
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Subject: Re: tar problem
From: db
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Mon, 10 Jun 2024 11:34 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Mon, 10 Jun 2024 11:34:30 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <v46oc6$dn9v$1@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 10 Jun 2024 13:34:30 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="562855eda1f234ea759d207d3b5ba56d";
logging-data="449855"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18XYvCUny0meBAr9xeFbHL48X333uxGKnk="
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Cancel-Lock: sha1:bpkVKeSg5q9LacKQApzGKbOrRKU=
View all headers

On Sun, 09 Jun 2024 19:12:52 +0000, Robert Heller wrote:

> At Sun, 09 Jun 2024 18:22:38 +0100 Richard Kettlewell
> <invalid@invalid.invalid> wrote:
>
>
>> db <dieterhansbritz@gmail.com> writes:
>> > I like to make life easy so I wrote a one-line script for extracting
>> > the contents of a tar file. I copied it into the /bin directory so I
>> > can run it from anywhere.
>> > I tried it out in a test directory where I had it, and where there is
>> > a small test tar file. Here is the dialogue from running it, using
>> > both the local script and the one in /bin:
>> >
>> > ~/tartest> ls tarx test.tar.gz ~/tartest> cat tarx tar -xf $1.tar.gz
>> > ~/tartest> cat ~/bin/tarx tar -xf $1.tar.gz ~/tartest> ./tarx test
>> > ~/tartest> ls tarx test test.tar.gz ~/tartest> del -r test
>> > ~/tartest> tarx test tar (child): test: Cannot open: No such file or
>> > directory tar (child): Error is not recoverable: exiting now tar:
>> > Child returned status 2 tar: Error is not recoverable: exiting now
>> >
>> > Why doesn't it work from bin/ ?
>
> What does 'which tarx' show? Does it show /bin/tarx?
>
> Note: you should *never* put random programs in /bin (or even /usr/bin).
> The only programs/files in these directories should be ones installed
> by your package management system. /bin is reserved for core / early
> boot programs and others would be in /usr/bin.
>
> Locally provided programs should be in either /usr/local/bin or /opt/bin
> (depending on your file system usage philosiphy). These directories
> can/should be added to your $PATH. *Personally* provided programs
> should be in $HOME/bin, and this directory can be added to your $PATH as
> well.
>
>
>> Probably /bin/tarx isn't the same as ./tarx. What does
>> cat /bin/tarx
>> show?
>>

I already showed that, the two cat.. statements.

Be that as it may, but this works with other single-line
scripts I use. E.g. inside the directory Newstuff/ i just
typed in

~/Newstuff> mvindex

which moves a newly generated file called index.htm into another
directory. The command sits in ~/bin, as seen here
~/Newstuff> more ~/bin/mvindex
mv index.htm ~/homepage/pages/

And that worked.
Ar well, the easy way out is simply to plant the tarx script
in the two tar file directories I have, and run it with ./

--
db

Subject: Re: tar problem
From: Lew Pitcher
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Mon, 10 Jun 2024 12:35 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Mon, 10 Jun 2024 12:35:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 65
Message-ID: <v46ruq$etuo$1@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com>
<v46oc6$dn9v$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 10 Jun 2024 14:35:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7c686c96fa35450f6977fa07b8dd8797";
logging-data="489432"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ks7fUO987p3Feeu4kiFgqCDMS7Ha748Y="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:U6/8yumEu65yaNnLzwzl95LoWN4=
View all headers

On Mon, 10 Jun 2024 11:34:30 +0000, db wrote:

> On Sun, 09 Jun 2024 19:12:52 +0000, Robert Heller wrote:
>
>> At Sun, 09 Jun 2024 18:22:38 +0100 Richard Kettlewell
>> <invalid@invalid.invalid> wrote:
>>
>>
>>> db <dieterhansbritz@gmail.com> writes:
>>> > I like to make life easy so I wrote a one-line script for extracting
>>> > the contents of a tar file. I copied it into the /bin directory so I
>>> > can run it from anywhere.
>>> > I tried it out in a test directory where I had it, and where there is
>>> > a small test tar file. Here is the dialogue from running it, using
>>> > both the local script and the one in /bin:
>>> >
>>> > ~/tartest> ls tarx test.tar.gz ~/tartest> cat tarx tar -xf $1.tar.gz
>>> > ~/tartest> cat ~/bin/tarx tar -xf $1.tar.gz ~/tartest> ./tarx test
>>> > ~/tartest> ls tarx test test.tar.gz ~/tartest> del -r test
>>> > ~/tartest> tarx test tar (child): test: Cannot open: No such file or
>>> > directory tar (child): Error is not recoverable: exiting now tar:
>>> > Child returned status 2 tar: Error is not recoverable: exiting now
>>> >
>>> > Why doesn't it work from bin/ ?
>>
>> What does 'which tarx' show? Does it show /bin/tarx?
>>
>> Note: you should *never* put random programs in /bin (or even /usr/bin).
>> The only programs/files in these directories should be ones installed
>> by your package management system. /bin is reserved for core / early
>> boot programs and others would be in /usr/bin.
>>
>> Locally provided programs should be in either /usr/local/bin or /opt/bin
>> (depending on your file system usage philosiphy). These directories
>> can/should be added to your $PATH. *Personally* provided programs
>> should be in $HOME/bin, and this directory can be added to your $PATH as
>> well.
>>
>>
>>> Probably /bin/tarx isn't the same as ./tarx. What does
>>> cat /bin/tarx
>>> show?
>>>
>
> I already showed that, the two cat.. statements.

Sorry, but no, you didn't.

You showed us
~/tartest> cat tarx
which gave the contents of ~/tartest/tarx, and
~/tartest> cat ~/bin/tarx
which gave the contents of ~/bin/tarx

You haven't shown the contents of /bin/tarx

Nor have you shown that there is no other version of your
tarx script in your PATH.

[snip]

--
Lew Pitcher
"In Skills We Trust"

Subject: Re: tar problem
From: Carlos E. R.
Newsgroups: comp.os.linux.misc
Date: Mon, 10 Jun 2024 21:00 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E. R.)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Mon, 10 Jun 2024 23:00:02 +0200
Lines: 68
Message-ID: <lcp7qiF3bnqU2@mid.individual.net>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com> <v46oc6$dn9v$1@dont-email.me>
<v46ruq$etuo$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net pv/m/wP40wsIhFgVzrtGzgbnxSco5LuJhL1IpKScpI1Pw9RyjG
Cancel-Lock: sha1:JE+TfAIFNPrTS2aB9+Rb1Xv3GDE= sha256:X76koq7+HQMj9s6rMCHM8/ZTtfMVBojrjam98ULqTY8=
User-Agent: Mozilla Thunderbird
Content-Language: en-CA, es-ANY
In-Reply-To: <v46ruq$etuo$1@dont-email.me>
View all headers

On 2024-06-10 14:35, Lew Pitcher wrote:
> On Mon, 10 Jun 2024 11:34:30 +0000, db wrote:
>
>> On Sun, 09 Jun 2024 19:12:52 +0000, Robert Heller wrote:
>>
>>> At Sun, 09 Jun 2024 18:22:38 +0100 Richard Kettlewell
>>> <invalid@invalid.invalid> wrote:
>>>
>>>
>>>> db <dieterhansbritz@gmail.com> writes:
>>>>> I like to make life easy so I wrote a one-line script for extracting
>>>>> the contents of a tar file. I copied it into the /bin directory so I
>>>>> can run it from anywhere.
>>>>> I tried it out in a test directory where I had it, and where there is
>>>>> a small test tar file. Here is the dialogue from running it, using
>>>>> both the local script and the one in /bin:
>>>>>
>>>>> ~/tartest> ls tarx test.tar.gz ~/tartest> cat tarx tar -xf $1.tar.gz
>>>>> ~/tartest> cat ~/bin/tarx tar -xf $1.tar.gz ~/tartest> ./tarx test
>>>>> ~/tartest> ls tarx test test.tar.gz ~/tartest> del -r test
>>>>> ~/tartest> tarx test tar (child): test: Cannot open: No such file or
>>>>> directory tar (child): Error is not recoverable: exiting now tar:
>>>>> Child returned status 2 tar: Error is not recoverable: exiting now
>>>>>
>>>>> Why doesn't it work from bin/ ?
>>>
>>> What does 'which tarx' show? Does it show /bin/tarx?
>>>
>>> Note: you should *never* put random programs in /bin (or even /usr/bin).
>>> The only programs/files in these directories should be ones installed
>>> by your package management system. /bin is reserved for core / early
>>> boot programs and others would be in /usr/bin.
>>>
>>> Locally provided programs should be in either /usr/local/bin or /opt/bin
>>> (depending on your file system usage philosiphy). These directories
>>> can/should be added to your $PATH. *Personally* provided programs
>>> should be in $HOME/bin, and this directory can be added to your $PATH as
>>> well.
>>>
>>>
>>>> Probably /bin/tarx isn't the same as ./tarx. What does
>>>> cat /bin/tarx
>>>> show?
>>>>
>>
>> I already showed that, the two cat.. statements.
>
> Sorry, but no, you didn't.
>
> You showed us
> ~/tartest> cat tarx
> which gave the contents of ~/tartest/tarx, and
> ~/tartest> cat ~/bin/tarx
> which gave the contents of ~/bin/tarx
>
> You haven't shown the contents of /bin/tarx

There is no proof that such a file exists.

> Nor have you shown that there is no other version of your
> tarx script in your PATH.

That is the question to ask first :-)

--
Cheers,
Carlos E.R.

Subject: Re: tar problem
From: Lew Pitcher
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Mon, 10 Jun 2024 22:35 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Mon, 10 Jun 2024 22:35:26 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 78
Message-ID: <v47v3e$etuo$2@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com>
<v46oc6$dn9v$1@dont-email.me> <v46ruq$etuo$1@dont-email.me>
<lcp7qiF3bnqU2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 11 Jun 2024 00:35:26 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d91e50d1a29be9d3e7c14e757d2df79e";
logging-data="489432"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/I+C71ykZZP7BWLlmWilzISqQwMqUHUIE="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:iMvvumetI++A/G6PSrjx+mtkA1w=
View all headers

On Mon, 10 Jun 2024 23:00:02 +0200, Carlos E. R. wrote:

> On 2024-06-10 14:35, Lew Pitcher wrote:
>> On Mon, 10 Jun 2024 11:34:30 +0000, db wrote:
>>
>>> On Sun, 09 Jun 2024 19:12:52 +0000, Robert Heller wrote:
>>>
>>>> At Sun, 09 Jun 2024 18:22:38 +0100 Richard Kettlewell
>>>> <invalid@invalid.invalid> wrote:
>>>>
>>>>
>>>>> db <dieterhansbritz@gmail.com> writes:
>>>>>> I like to make life easy so I wrote a one-line script for extracting
>>>>>> the contents of a tar file. I copied it into the /bin directory so I
>>>>>> can run it from anywhere.
>>>>>> I tried it out in a test directory where I had it, and where there is
>>>>>> a small test tar file. Here is the dialogue from running it, using
>>>>>> both the local script and the one in /bin:
>>>>>>
>>>>>> ~/tartest> ls tarx test.tar.gz ~/tartest> cat tarx tar -xf $1.tar.gz
>>>>>> ~/tartest> cat ~/bin/tarx tar -xf $1.tar.gz ~/tartest> ./tarx test
>>>>>> ~/tartest> ls tarx test test.tar.gz ~/tartest> del -r test
>>>>>> ~/tartest> tarx test tar (child): test: Cannot open: No such file or
>>>>>> directory tar (child): Error is not recoverable: exiting now tar:
>>>>>> Child returned status 2 tar: Error is not recoverable: exiting now
>>>>>>
>>>>>> Why doesn't it work from bin/ ?
>>>>
>>>> What does 'which tarx' show? Does it show /bin/tarx?
>>>>
>>>> Note: you should *never* put random programs in /bin (or even /usr/bin).
>>>> The only programs/files in these directories should be ones installed
>>>> by your package management system. /bin is reserved for core / early
>>>> boot programs and others would be in /usr/bin.
>>>>
>>>> Locally provided programs should be in either /usr/local/bin or /opt/bin
>>>> (depending on your file system usage philosiphy). These directories
>>>> can/should be added to your $PATH. *Personally* provided programs
>>>> should be in $HOME/bin, and this directory can be added to your $PATH as
>>>> well.
>>>>
>>>>
>>>>> Probably /bin/tarx isn't the same as ./tarx. What does
>>>>> cat /bin/tarx
>>>>> show?
>>>>>
>>>
>>> I already showed that, the two cat.. statements.
>>
>> Sorry, but no, you didn't.
>>
>> You showed us
>> ~/tartest> cat tarx
>> which gave the contents of ~/tartest/tarx, and
>> ~/tartest> cat ~/bin/tarx
>> which gave the contents of ~/bin/tarx
>>
>> You haven't shown the contents of /bin/tarx
>
> There is no proof that such a file exists.

Agreed. However, the OP asserts that he (quote)
>>>>>> copied it into the /bin directory
and gives an example where he executes it from
(presumably, the /bin directory) in his path.

>> Nor have you shown that there is no other version of your
>> tarx script in your PATH.
>
> That is the question to ask first :-)

That's the question I /did/ ask first :-)

--
Lew Pitcher
"In Skills We Trust"

Subject: Re: tar problem
From: Carlos E. R.
Newsgroups: comp.os.linux.misc
Date: Mon, 10 Jun 2024 22:55 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E. R.)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Tue, 11 Jun 2024 00:55:24 +0200
Lines: 39
Message-ID: <lcpeisF3bnrU1@mid.individual.net>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com> <v46oc6$dn9v$1@dont-email.me>
<v46ruq$etuo$1@dont-email.me> <lcp7qiF3bnqU2@mid.individual.net>
<v47v3e$etuo$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net TgC2jyfw7TaYXuipojuagQgZDpDXLFCCoovdH0qZO0o8aR92Zq
Cancel-Lock: sha1:V5L1T16yxEYqfD7oOJ9AQyXhDqU= sha256:Z6eGr9YmXHxw5zWqYDvQQodJhA+eFuYYyjySVT7ZdIg=
User-Agent: Mozilla Thunderbird
Content-Language: en-CA, es-ANY
In-Reply-To: <v47v3e$etuo$2@dont-email.me>
View all headers

On 2024-06-11 00:35, Lew Pitcher wrote:
> On Mon, 10 Jun 2024 23:00:02 +0200, Carlos E. R. wrote:
>
>> On 2024-06-10 14:35, Lew Pitcher wrote:
>>> On Mon, 10 Jun 2024 11:34:30 +0000, db wrote:

>>> You haven't shown the contents of /bin/tarx
>>
>> There is no proof that such a file exists.
>
> Agreed. However, the OP asserts that he (quote)
>>>>>>> copied it into the /bin directory

Yes, the text does say that, which I found confusing compared with the
command line paste.

> and gives an example where he executes it from
> (presumably, the /bin directory) in his path.

A simple "which tarx" would clarify things.

>>> Nor have you shown that there is no other version of your
>>> tarx script in your PATH.
>>
>> That is the question to ask first :-)
>
> That's the question I /did/ ask first :-)

Ok :-)

--
Cheers,
Carlos E.R.

Subject: Re: tar problem
From: Lew Pitcher
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Mon, 10 Jun 2024 22:56 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Mon, 10 Jun 2024 22:56:55 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <v480bn$etuo$3@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 11 Jun 2024 00:56:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d91e50d1a29be9d3e7c14e757d2df79e";
logging-data="489432"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TB+/HvRkfqeO5FfpVCr5GzQZSOF6CkkA="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:FdSBs2aydxd62kNDx+2VtP8YId8=
View all headers

On Sun, 09 Jun 2024 14:36:49 +0000, db wrote:

> I like to make life easy so I wrote a one-line script
> for extracting the contents of a tar file. I copied it
> into the /bin directory so I can run it from anywhere.
> I tried it out in a test directory where I had it, and
> where there is a small test tar file. Here is the dialogue
> from running it, using both the local script and the one
> in /bin:
>
> ~/tartest> ls
> tarx test.tar.gz
> ~/tartest> cat tarx
> tar -xf $1.tar.gz
> ~/tartest> cat ~/bin/tarx
> tar -xf $1.tar.gz
> ~/tartest> ./tarx test
> ~/tartest> ls
> tarx test test.tar.gz
> ~/tartest> del -r test

Is this a homegrown command, or does your distribution supply it?
FWIW, "del" is not a standard Unix or Linux command, and (AFAIK)
does not exist as a builtin in any Unix/Linux shell.

> ~/tartest> tarx test
> tar (child): test: Cannot open: No such file or directory
> tar (child): Error is not recoverable: exiting now
> tar: Child returned status 2
> tar: Error is not recoverable: exiting now

The error message implies that
a) tar can't find an input file called "test", and
b) that your tarx command doesn't expand it's argument
into a filename that tar /can/ find.

> Why doesn't it work from bin/ ?

What shell do you use?
Do you have an alias set for tar or tarx?

--
Lew Pitcher
"In Skills We Trust"

Subject: Re: tar problem
From: Carlos E. R.
Newsgroups: comp.os.linux.misc
Date: Tue, 11 Jun 2024 00:42 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E. R.)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Tue, 11 Jun 2024 02:42:35 +0200
Lines: 36
Message-ID: <lcpkrrF3bnqU4@mid.individual.net>
References: <v44em0$3i8j8$1@dont-email.me> <v480bn$etuo$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net StFfm2gF7Bldpa3P24R7RA1eVgXixf0stdC4c+SHu+MVVah4CJ
Cancel-Lock: sha1:agPKmLzee00IOW7VY80acaMFn7E= sha256:K8qVEt282LMTwZHBH4OilBMoyVYK9XQEii/cxJRLrBA=
User-Agent: Mozilla Thunderbird
Content-Language: en-CA, es-ANY
In-Reply-To: <v480bn$etuo$3@dont-email.me>
View all headers

On 2024-06-11 00:56, Lew Pitcher wrote:
> On Sun, 09 Jun 2024 14:36:49 +0000, db wrote:
>
>> I like to make life easy so I wrote a one-line script
>> for extracting the contents of a tar file. I copied it
>> into the /bin directory so I can run it from anywhere.
>> I tried it out in a test directory where I had it, and
>> where there is a small test tar file. Here is the dialogue
>> from running it, using both the local script and the one
>> in /bin:
>>
>> ~/tartest> ls
>> tarx test.tar.gz
>> ~/tartest> cat tarx
>> tar -xf $1.tar.gz
>> ~/tartest> cat ~/bin/tarx
>> tar -xf $1.tar.gz
>> ~/tartest> ./tarx test
>> ~/tartest> ls
>> tarx test test.tar.gz
>> ~/tartest> del -r test
>
> Is this a homegrown command, or does your distribution supply it?
> FWIW, "del" is not a standard Unix or Linux command, and (AFAIK)
> does not exist as a builtin in any Unix/Linux shell.

AFAIR, SuSE had it quite long ago. Probably an alias.

There is a dir command, though :-)

....

--
Cheers,
Carlos E.R.

Subject: Re: tar problem
From: db
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Tue, 11 Jun 2024 08:39 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Tue, 11 Jun 2024 08:39:47 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <v492gj$vdjv$1@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com>
<v46oc6$dn9v$1@dont-email.me> <v46ruq$etuo$1@dont-email.me>
<lcp7qiF3bnqU2@mid.individual.net> <v47v3e$etuo$2@dont-email.me>
<lcpeisF3bnrU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 11 Jun 2024 10:39:47 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3c9ea57dea24fe7394c6ab263df9fd88";
logging-data="1029759"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/jMN2O2rizj3QteaGoRoZp9SEfcIcMEH8="
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Cancel-Lock: sha1:0no0PkevtHjgpt+rvpFczyWNC6g=
View all headers

On Tue, 11 Jun 2024 00:55:24 +0200, Carlos E. R. wrote:

> On 2024-06-11 00:35, Lew Pitcher wrote:
>> On Mon, 10 Jun 2024 23:00:02 +0200, Carlos E. R. wrote:
>>
>>> On 2024-06-10 14:35, Lew Pitcher wrote:
>>>> On Mon, 10 Jun 2024 11:34:30 +0000, db wrote:
>
>
>>>> You haven't shown the contents of /bin/tarx
>>>
>>> There is no proof that such a file exists.
>>
>> Agreed. However, the OP asserts that he (quote)
>>>>>>>> copied it into the /bin directory
>
> Yes, the text does say that, which I found confusing compared with the
> command line paste.
>
>
>
>> and gives an example where he executes it from (presumably, the /bin
>> directory) in his path.
>
> A simple "which tarx" would clarify things.
>
>
>>>> Nor have you shown that there is no other version of your tarx script
>>>> in your PATH.
>>>
>>> That is the question to ask first :-)

OK:

~> which tarx
/home/db/bin/tarx

Hej Dieter

Som udgangspunkt er det ikke nødvendigt med efterkontrol af urinprøve
efter blærebetændelse.
Kun hvis symptomerne ikke er væk eller kommer igen.

--
db

Subject: Re: tar problem
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Tue, 11 Jun 2024 17:07 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Tue, 11 Jun 2024 17:07:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <v4a08d$1573l$1@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me> <wwvo78auj35.fsf@LkoBDZeT.terraraq.uk> <F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com> <v46oc6$dn9v$1@dont-email.me> <v46ruq$etuo$1@dont-email.me> <lcp7qiF3bnqU2@mid.individual.net> <v47v3e$etuo$2@dont-email.me> <lcpeisF3bnrU1@mid.individual.net> <v492gj$vdjv$1@dont-email.me>
Injection-Date: Tue, 11 Jun 2024 19:07:25 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="722d69961894e246a0dd6db4a2ddc122";
logging-data="1219701"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QbFNkOwNujpMZ8SnlqoCC"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:IbQioUEaFKjk9DsHMOCUf//LN6Y=
View all headers

db <dieterhansbritz@gmail.com> wrote:
> On Tue, 11 Jun 2024 00:55:24 +0200, Carlos E. R. wrote:
>
>> On 2024-06-11 00:35, Lew Pitcher wrote:
>>> On Mon, 10 Jun 2024 23:00:02 +0200, Carlos E. R. wrote:
>>>
>>>> On 2024-06-10 14:35, Lew Pitcher wrote:

>>>>> Nor have you shown that there is no other version of your tarx
>>>>> script in your PATH.
>>>>
>>>> That is the question to ask first :-)
>
> OK:
>
> ~> which tarx
> /home/db/bin/tarx

Edit the /home/db/bin/tarx and add "set -x" as the first line, then run
the one from /home/db/bin/tarx and report what is output by bash in
"set -x" mode.

Subject: Re: tar problem
From: Lew Pitcher
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Tue, 11 Jun 2024 18:36 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Tue, 11 Jun 2024 18:36:46 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <v4a5fu$12q4r$1@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com>
<v46oc6$dn9v$1@dont-email.me> <v46ruq$etuo$1@dont-email.me>
<lcp7qiF3bnqU2@mid.individual.net> <v47v3e$etuo$2@dont-email.me>
<lcpeisF3bnrU1@mid.individual.net> <v492gj$vdjv$1@dont-email.me>
<v4a08d$1573l$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 11 Jun 2024 20:36:46 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d91e50d1a29be9d3e7c14e757d2df79e";
logging-data="1140891"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Y352UlLicGW3K4cCOk14arqrvr8Xs09A="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:5JvLWn28o6DkFDh3CGPKW+oYtfY=
View all headers

On Tue, 11 Jun 2024 17:07:25 +0000, Rich wrote:

> db <dieterhansbritz@gmail.com> wrote:
>> On Tue, 11 Jun 2024 00:55:24 +0200, Carlos E. R. wrote:
>>
>>> On 2024-06-11 00:35, Lew Pitcher wrote:
>>>> On Mon, 10 Jun 2024 23:00:02 +0200, Carlos E. R. wrote:
>>>>
>>>>> On 2024-06-10 14:35, Lew Pitcher wrote:
>
>>>>>> Nor have you shown that there is no other version of your tarx
>>>>>> script in your PATH.
>>>>>
>>>>> That is the question to ask first :-)
>>
>> OK:
>>
>> ~> which tarx
>> /home/db/bin/tarx
>
> Edit the /home/db/bin/tarx and add "set -x" as the first line, then run
> the one from /home/db/bin/tarx and report what is output by bash in
> "set -x" mode.

or, just
sh -x tarx text

--
Lew Pitcher
"In Skills We Trust"

Subject: Re: tar problem
From: candycanearter07
Newsgroups: comp.os.linux.misc
Organization: the-candyden-of-code
Date: Wed, 12 Jun 2024 06:45 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Wed, 12 Jun 2024 06:45:02 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 58
Message-ID: <slrnv6igo5.13pi.candycanearter07@candydeb.host.invalid>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com>
Injection-Date: Wed, 12 Jun 2024 08:45:03 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a92ee56fe71330095cf9c81c717935bf";
logging-data="1622498"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hxRQ+Fjsft91+Nz+N907uwMhLst6X/VXAQuyUrhSA5w=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:n/Oyfidr9Fv9xb54KYESTitHJDI=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

Robert Heller <heller@deepsoft.com> wrote at 19:12 this Sunday (GMT):
> At Sun, 09 Jun 2024 18:22:38 +0100 Richard Kettlewell <invalid@invalid.invalid> wrote:
>
>>
>> db <dieterhansbritz@gmail.com> writes:
>> > I like to make life easy so I wrote a one-line script
>> > for extracting the contents of a tar file. I copied it
>> > into the /bin directory so I can run it from anywhere.
>> > I tried it out in a test directory where I had it, and
>> > where there is a small test tar file. Here is the dialogue
>> > from running it, using both the local script and the one
>> > in /bin:
>> >
>> > ~/tartest> ls
>> > tarx test.tar.gz
>> > ~/tartest> cat tarx
>> > tar -xf $1.tar.gz
>> > ~/tartest> cat ~/bin/tarx
>> > tar -xf $1.tar.gz
>> > ~/tartest> ./tarx test
>> > ~/tartest> ls
>> > tarx test test.tar.gz
>> > ~/tartest> del -r test
>> > ~/tartest> tarx test
>> > tar (child): test: Cannot open: No such file or directory
>> > tar (child): Error is not recoverable: exiting now
>> > tar: Child returned status 2
>> > tar: Error is not recoverable: exiting now
>> >
>> > Why doesn't it work from bin/ ?
>
> What does 'which tarx' show? Does it show /bin/tarx?
>
> Note: you should *never* put random programs in /bin (or even /usr/bin). The
> only programs/files in these directories should be ones installed by your
> package management system. /bin is reserved for core / early boot programs
> and others would be in /usr/bin.

Technically, /bin is usually a symlink to /usr/bin, but still yeah never
put stuff in there.

> Locally provided programs should be in either /usr/local/bin or /opt/bin
> (depending on your file system usage philosiphy). These directories
> can/should be added to your $PATH. *Personally* provided programs should be
> in $HOME/bin, and this directory can be added to your $PATH as well.

I think $HOME/.local/bin is a common one too.

>>
>> Probably /bin/tarx isn't the same as ./tarx. What does
>> cat /bin/tarx
>> show?
>>
>

--
user <candycane> is generated from /dev/urandom

Subject: Re: tar problem
From: db
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 12 Jun 2024 12:38 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Wed, 12 Jun 2024 12:38:43 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <v4c4sj$1ld54$2@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com>
<v46oc6$dn9v$1@dont-email.me> <v46ruq$etuo$1@dont-email.me>
<lcp7qiF3bnqU2@mid.individual.net> <v47v3e$etuo$2@dont-email.me>
<lcpeisF3bnrU1@mid.individual.net> <v492gj$vdjv$1@dont-email.me>
<v4a08d$1573l$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 12 Jun 2024 14:38:43 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1d9c5badac3dace253942736af057e48";
logging-data="1750180"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/QklXj4CwMMJ95J2EMRadstHHgWOI5z8o="
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Cancel-Lock: sha1:eSGWG3Z3PAjtaQQE0V66s21GVnk=
View all headers

On Tue, 11 Jun 2024 17:07:25 -0000 (UTC), Rich wrote:

> db <dieterhansbritz@gmail.com> wrote:
>> On Tue, 11 Jun 2024 00:55:24 +0200, Carlos E. R. wrote:
>>
>>> On 2024-06-11 00:35, Lew Pitcher wrote:
>>>> On Mon, 10 Jun 2024 23:00:02 +0200, Carlos E. R. wrote:
>>>>
>>>>> On 2024-06-10 14:35, Lew Pitcher wrote:
>
>>>>>> Nor have you shown that there is no other version of your tarx
>>>>>> script in your PATH.
>>>>>
>>>>> That is the question to ask first :-)
>>
>> OK:
>>
>> ~> which tarx /home/db/bin/tarx
>
> Edit the /home/db/bin/tarx and add "set -x" as the first line, then run
> the one from /home/db/bin/tarx and report what is output by bash in "set
> -x" mode.

(Sorry about the Danish extraneous text, a copy/paste
from an email from my doctor)
Did that:

~/bin> tarx ../tarfiles/NumNotes
tar (child): ../tarfiles/NumNotes: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
~/bin> ls ../tarfiles/Num*
.../tarfiles/NumNotes.tar.gz

The last line proves that it's lying.
--
db

Subject: Re: tar problem
From: db
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 12 Jun 2024 12:41 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Wed, 12 Jun 2024 12:41:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <v4c522$1ld54$3@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me> <v480bn$etuo$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 12 Jun 2024 14:41:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1d9c5badac3dace253942736af057e48";
logging-data="1750180"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//eSQ4WVs2TniaSbA5yjUFtlCQ4RC8zcU="
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Cancel-Lock: sha1:vUUz/0i1Nt6k8Qi50PtsbBQmaVQ=
View all headers

On Mon, 10 Jun 2024 22:56:55 -0000 (UTC), Lew Pitcher wrote:

> On Sun, 09 Jun 2024 14:36:49 +0000, db wrote:
>
>> I like to make life easy so I wrote a one-line script for extracting
>> the contents of a tar file. I copied it into the /bin directory so I
>> can run it from anywhere.
>> I tried it out in a test directory where I had it, and where there is a
>> small test tar file. Here is the dialogue from running it, using both
>> the local script and the one in /bin:
>>
>> ~/tartest> ls tarx test.tar.gz ~/tartest> cat tarx tar -xf $1.tar.gz
>> ~/tartest> cat ~/bin/tarx tar -xf $1.tar.gz ~/tartest> ./tarx test
>> ~/tartest> ls tarx test test.tar.gz ~/tartest> del -r test
>
> Is this a homegrown command, or does your distribution supply it?
> FWIW, "del" is not a standard Unix or Linux command, and (AFAIK) does
> not exist as a builtin in any Unix/Linux shell.
>
>> ~/tartest> tarx test tar (child): test: Cannot open: No such file or
>> directory tar (child): Error is not recoverable: exiting now tar: Child
>> returned status 2 tar: Error is not recoverable: exiting now
>
> The error message implies that a) tar can't find an input file called
> "test", and b) that your tarx command doesn't expand it's argument
> into a filename that tar /can/ find.
>
>> Why doesn't it work from bin/ ?
>
> What shell do you use?
> Do you have an alias set for tar or tarx?

del is an alias for rm -i, saving me that onerous -i {;]
bash, under Kubuntu
No alias set for tar or tarx

--
db

Subject: Re: tar problem
From: Marc Olschok
Newsgroups: comp.os.linux.misc
Date: Wed, 12 Jun 2024 15:29 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: nobody@nowhere.invalid (Marc Olschok)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Wed, 12 Jun 2024 15:29:57 -0000 (UTC)
Sender: Marc <marc@komet.home.org>
Message-ID: <v4cetl$1huma$1@solani.org>
References: <v44em0$3i8j8$1@dont-email.me>
Injection-Date: Wed, 12 Jun 2024 15:29:57 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1637066"; mail-complaints-to="abuse@news.solani.org"
User-Agent: tin/2.6.0-20210823 ("Coleburn") (Linux/5.15.10-smp (i686))
Cancel-Lock: sha1:vkweVqfCF/+Ci6Zn/32OF/U47JM=
X-User-ID: eJwFwQEBwDAIAzBL8NKCncOGfwlLCLkmQ1RwuTDL1P12BB9Z3dxfyCKnfWNPS3NKQMOBBw6PEKU=
View all headers

On Sun, 09 Jun 2024 16:36:49 db wrote:
> I like to make life easy so I wrote a one-line script
> for extracting the contents of a tar file. I copied it
> into the /bin directory so I can run it from anywhere.

This is not really adressing your original question, but
since you want to make life easy, did you consider to have
tarx as alias for 'tar -xf' instead of a shell-script?

Also I wonder if the version of tar you are using really
recognizes gzipped files and inserts the -z option even
if it is not invoked with it.

--
M.O.

Subject: Re: tar problem
From: Ralf Fassel
Newsgroups: comp.os.linux.misc
Date: Wed, 12 Jun 2024 16:49 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralfixx@gmx.de (Ralf Fassel)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Wed, 12 Jun 2024 18:49:24 +0200
Lines: 13
Message-ID: <ygar0d2qf6z.fsf@akutech.de>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com>
<v46oc6$dn9v$1@dont-email.me> <v46ruq$etuo$1@dont-email.me>
<lcp7qiF3bnqU2@mid.individual.net> <v47v3e$etuo$2@dont-email.me>
<lcpeisF3bnrU1@mid.individual.net> <v492gj$vdjv$1@dont-email.me>
<v4a08d$1573l$1@dont-email.me> <v4c4sj$1ld54$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net te3XBEje+aoD9kuNdVHFUgQ4Dj/7w7y5FC0E2/FiWvYLTHDW8=
Cancel-Lock: sha1:rTF6yawoPDPRMakTzPRpy17cl+Q= sha1:P4YmZ1S4mAvxu9IvxzpAX+BJIac= sha256:3AD6BKpqpx6mSNF9vIT4PU/Tck9PqGGQ19IL6TH079g=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
View all headers

* db <dieterhansbritz@gmail.com>
| ~/bin> tarx ../tarfiles/NumNotes
| tar (child): ../tarfiles/NumNotes: Cannot open: No such file or directory
--<snip-snip>--
| ~/bin> ls ../tarfiles/Num*
| ../tarfiles/NumNotes.tar.gz
>
| The last line proves that it's lying.

Why do you expect that if you tell tar to use a file named 'NumNotes'
that it should use a file named 'NumNotes.tar.gz' instead?

R'

Subject: Re: tar problem
From: marrgol
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 12 Jun 2024 17:33 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: marrgol@address.invalid (marrgol)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Wed, 12 Jun 2024 19:33:33 +0200
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <v4cm5d$1o2u1$1@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 12 Jun 2024 19:33:33 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e2906f4fce852d63a1b8303a50015de6";
logging-data="1838017"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19z8PxhBt+x2vX2djdStBjT"
User-Agent: Mozilla/5.0 (rv:102.0) Gecko/20100101, Betterbird/102
Cancel-Lock: sha1:qQ0TzpNpBYi8ZS7EAHRK2t+Lgy4=
Content-Language: en-GB, pl
In-Reply-To: <v44em0$3i8j8$1@dont-email.me>
View all headers

On 2024-06-09 at 16:36 db wrote:
> I like to make life easy so I wrote a one-line script
> for extracting the contents of a tar file. I copied it
> into the /bin directory so I can run it from anywhere.
> I tried it out in a test directory where I had it, and
> where there is a small test tar file. Here is the dialogue
> from running it, using both the local script and the one
> in /bin:
>
> ~/tartest> ls
> tarx test.tar.gz
> ~/tartest> cat tarx
> tar -xf $1.tar.gz
> ~/tartest> cat ~/bin/tarx
> tar -xf $1.tar.gz
> ~/tartest> ./tarx test
> ~/tartest> ls
> tarx test test.tar.gz
> ~/tartest> del -r test
> ~/tartest> tarx test
> tar (child): test: Cannot open: No such file or directory
> tar (child): Error is not recoverable: exiting now
> tar: Child returned status 2
> tar: Error is not recoverable: exiting now
>
> Why doesn't it work from bin/ ?

Does it work if you specify the full path of the executable in ~/bin/,
i.e. '/home/db/bin/tarx test'?
If it does, what do 'type -a tarx' and 'hash -t tarx' commands return?

Subject: Re: tar problem
From: Robert Heller
Newsgroups: comp.os.linux.misc
Organization: Deepwoods Software
Date: Wed, 12 Jun 2024 18:21 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-3.nntp.ord.giganews.com!local-1.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 12 Jun 2024 18:21:27 +0000
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.17)
Subject: Re: tar problem
In-Reply-To: <v4cetl$1huma$1@solani.org>
References: <v44em0$3i8j8$1@dont-email.me> <v4cetl$1huma$1@solani.org>
Newsgroups: comp.os.linux.misc
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <zsGdnc8RV5m6evT7nZ2dnZfqnPadnZ2d@giganews.com>
Date: Wed, 12 Jun 2024 18:21:27 +0000
Lines: 28
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-x7U8mCV44Nc1sofO9tb04YIBLCYWtcBgyA12l8SwHkfIjqTZDOjxiDTaR5+TePVhKQaWRMQ+1VdI3WQ!o9KkO0D6SuXKfbsRRFEbNZOCg9Oo12MGQwEU+blCYFFUEkEd+kCJ9xkC2gYYG+FRHnnExeyxykCl!ztw=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

At Wed, 12 Jun 2024 15:29:57 -0000 (UTC) nobody@nowhere.invalid (Marc Olschok) wrote:

>
> On Sun, 09 Jun 2024 16:36:49 db wrote:
> > I like to make life easy so I wrote a one-line script
> > for extracting the contents of a tar file. I copied it
> > into the /bin directory so I can run it from anywhere.
>
> This is not really adressing your original question, but
> since you want to make life easy, did you consider to have
> tarx as alias for 'tar -xf' instead of a shell-script?
>
> Also I wonder if the version of tar you are using really
> recognizes gzipped files and inserts the -z option even
> if it is not invoked with it.

Generally, tar under Linux is Gnu Tar, which does recognize compressed tar
files, but generally only doublely extensioned filenames (eg mumble.tar.gz or
mumble.tar.bz2, etc.)

>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Subject: Re: tar problem
From: Richard Kettlewell
Newsgroups: comp.os.linux.misc
Organization: terraraq NNTP server
Date: Wed, 12 Jun 2024 19:16 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Wed, 12 Jun 2024 20:16:06 +0100
Organization: terraraq NNTP server
Message-ID: <wwvikyeq8eh.fsf@LkoBDZeT.terraraq.uk>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com>
<v46oc6$dn9v$1@dont-email.me> <v46ruq$etuo$1@dont-email.me>
<lcp7qiF3bnqU2@mid.individual.net> <v47v3e$etuo$2@dont-email.me>
<lcpeisF3bnrU1@mid.individual.net> <v492gj$vdjv$1@dont-email.me>
<v4a08d$1573l$1@dont-email.me> <v4c4sj$1ld54$2@dont-email.me>
<ygar0d2qf6z.fsf@akutech.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="59226"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:SU9K041jHTwjRiq8YkQzo+OiFO8=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
View all headers

Ralf Fassel <ralfixx@gmx.de> writes:
> * db <dieterhansbritz@gmail.com>
> | ~/bin> tarx ../tarfiles/NumNotes
> | tar (child): ../tarfiles/NumNotes: Cannot open: No such file or directory
> --<snip-snip>--
> | ~/bin> ls ../tarfiles/Num*
> | ../tarfiles/NumNotes.tar.gz
>>
> | The last line proves that it's lying.
>
> Why do you expect that if you tell tar to use a file named 'NumNotes'
> that it should use a file named 'NumNotes.tar.gz' instead?

The script they quoted does “tar -xf $1.tar.gz”, i.e. it adds .tar.gz.

Presumably the script they are actually running is different.

--
https://www.greenend.org.uk/rjk/

Subject: Re: tar problem
From: Robert Heller
Newsgroups: comp.os.linux.misc
Organization: Deepwoods Software
Date: Wed, 12 Jun 2024 21:08 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-3.nntp.ord.giganews.com!nntp.giganews.com!local-4.nntp.ord.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 12 Jun 2024 21:08:37 +0000
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.17)
Subject: Re: tar problem
In-Reply-To: <wwvikyeq8eh.fsf@LkoBDZeT.terraraq.uk>
References: <v44em0$3i8j8$1@dont-email.me>??<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>??<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com>??<v46oc6$dn9v$1@dont-email.me>
<v46ruq$etuo$1@dont-email.me>??<lcp7qiF3bnqU2@mid.individual.net>
<v47v3e$etuo$2@dont-email.me>??<lcpeisF3bnrU1@mid.individual.net>
<v492gj$vdjv$1@dont-email.me>??<v4a08d$1573l$1@dont-email.me>
<v4c4sj$1ld54$2@dont-email.me>??<ygar0d2qf6z.fsf@akutech.de>
<wwvikyeq8eh.fsf@LkoBDZeT.terraraq.uk>
Newsgroups: comp.os.linux.misc
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <VoicnQSLGKrIk_f7nZ2dnZfqn_qdnZ2d@giganews.com>
Date: Wed, 12 Jun 2024 21:08:37 +0000
Lines: 34
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-uPXY3NyNhbu1e7+C4gIiX5+6Ra2AazBFVq3y/C06oyZq8bL/Sm74zXCVOS/HpX0bAVACxilTunn0Jhe!j8Nu+agf7hGFufyQCsp/SZOXkb92nQMAOFMiaQoMg84GqCsZaf7RJWWGg/m7hd0NQwfOyL85rvPM!jV0=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

At Wed, 12 Jun 2024 20:16:06 +0100 Richard Kettlewell <invalid@invalid.invalid> wrote:

>
> Ralf Fassel <ralfixx@gmx.de> writes:
> > * db <dieterhansbritz@gmail.com>
> > | ~/bin> tarx ../tarfiles/NumNotes
> > | tar (child): ../tarfiles/NumNotes: Cannot open: No such file or directory
> > --<snip-snip>--
> > | ~/bin> ls ../tarfiles/Num*
> > | ../tarfiles/NumNotes.tar.gz
> >>
> > | The last line proves that it's lying.
> >
> > Why do you expect that if you tell tar to use a file named 'NumNotes'
> > that it should use a file named 'NumNotes.tar.gz' instead?
>
> The script they quoted does "tar -xf $1.tar.gz", i.e. it adds .tar.gz.
>
> Presumably the script they are actually running is different.
>

Wondering: is there a space after "$1" (eg between that and the dot). Also: is
the script file a purely ASCII text file or does it contain UTF-8 characters --
is the dot really an ASCII period character or something else that "looks"
like a period. Bash won't like it if it is not an ASCII period and won't like
white space where it does not belong. Note the lack of "#!/bin/bash" at the
start of the file could also be causing problems.

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Subject: Re: tar problem
From: Richard Kettlewell
Newsgroups: comp.os.linux.misc
Organization: terraraq NNTP server
Date: Thu, 13 Jun 2024 07:33 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Thu, 13 Jun 2024 08:33:55 +0100
Organization: terraraq NNTP server
Message-ID: <wwvv82d8ffg.fsf@LkoBDZeT.terraraq.uk>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com>
<v46oc6$dn9v$1@dont-email.me> <v46ruq$etuo$1@dont-email.me>
<lcp7qiF3bnqU2@mid.individual.net> <v47v3e$etuo$2@dont-email.me>
<lcpeisF3bnrU1@mid.individual.net> <v492gj$vdjv$1@dont-email.me>
<v4a08d$1573l$1@dont-email.me> <v4c4sj$1ld54$2@dont-email.me>
<ygar0d2qf6z.fsf@akutech.de> <wwvikyeq8eh.fsf@LkoBDZeT.terraraq.uk>
<VoicnQSLGKrIk_f7nZ2dnZfqn_qdnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="69822"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:FCS2E8gbeGxmxw84QRMSoTeoTj8=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
View all headers

Robert Heller <heller@deepsoft.com> writes:
> Richard Kettlewell <invalid@invalid.invalid> wrote:
>> The script they quoted does "tar -xf $1.tar.gz", i.e. it adds .tar.gz.
>>
>> Presumably the script they are actually running is different.
>
> Wondering: is there a space after "$1" (eg between that and the
> dot). Also: is the script file a purely ASCII text file or does it
> contain UTF-8 characters -- is the dot really an ASCII period
> character or something else that "looks" like a period. Bash won't
> like it if it is not an ASCII period and won't like white space where
> it does not belong.

I think you need to review the first post in the thread. They already
have a working script, all they need to do is run it instead of the
broken one; that is what they are having troble with. Knowing the
difference between the two scripts won’t help at all.

> Note the lack of "#!/bin/bash" at the start of the file could also be
> causing problems.

Again I think you need to review the first post in the thread. This
would not cause the problem that’s actually on display.

--
https://www.greenend.org.uk/rjk/

Pages:12

rocksolid light 0.9.8
clearnet tor