Re: tar problem

Liste des GroupesRevenir à ol misc 
Sujet : Re: tar problem
De : dieterhansbritz (at) *nospam* gmail.com (db)
Groupes : comp.os.linux.misc
Date : 12. Jun 2024, 14:41:38
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4c522$1ld54$3@dont-email.me>
References : 1 2
User-Agent : Pan/0.149 (Bellevue; 4c157ba)
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

Date Sujet#  Auteur
9 Jun 24 * tar problem40db
9 Jun 24 +- Re: tar problem1Marco Moock
9 Jun 24 +- Re: tar problem1Lew Pitcher
9 Jun 24 +* Re: tar problem18Richard Kettlewell
9 Jun 24 i`* Re: tar problem17Robert Heller
10 Jun 24 i +* Re: tar problem15db
10 Jun 24 i i`* Re: tar problem14Lew Pitcher
10 Jun 24 i i `* Re: tar problem13Carlos E. R.
11 Jun 24 i i  `* Re: tar problem12Lew Pitcher
11 Jun 24 i i   `* Re: tar problem11Carlos E. R.
11 Jun 24 i i    `* Re: tar problem10db
11 Jun 24 i i     `* Re: tar problem9Rich
11 Jun 24 i i      +- Re: tar problem1Lew Pitcher
12 Jun 24 i i      `* Re: tar problem7db
12 Jun 24 i i       `* Re: tar problem6Ralf Fassel
12 Jun 24 i i        `* Re: tar problem5Richard Kettlewell
12 Jun 24 i i         +* Re: tar problem2Robert Heller
13 Jun 24 i i         i`- Re: tar problem1Richard Kettlewell
13 Jun 24 i i         +- Re: tar problem1Ralf Fassel
13 Jun 24 i i         `- Re: tar problem1Carlos E. R.
12 Jun 24 i `- Re: tar problem1candycanearter07
11 Jun 24 +* Re: tar problem3Lew Pitcher
11 Jun 24 i+- Re: tar problem1Carlos E. R.
12 Jun 24 i`- Re: tar problem1db
12 Jun 24 +* Re: tar problem2Marc Olschok
12 Jun 24 i`- Re: tar problem1Robert Heller
12 Jun 24 +- Re: tar problem1marrgol
14 Jun 24 `* Re: tar problem13db
14 Jun 24  `* Re: tar problem12Lew Pitcher
14 Jun 24   `* Path and/or alias finding11Carlos E.R.
14 Jun 24    +* Re: Path and/or alias finding7Robert Heller
14 Jun 24    i+- Re: Path and/or alias finding1Carlos E.R.
14 Jun 24    i+* Re: Path and/or alias finding4Lew Pitcher
14 Jun 24    ii+- Re: Path and/or alias finding1Lew Pitcher
14 Jun 24    ii+- Re: Path and/or alias finding1Carlos E.R.
31 Jul 24    ii`- Re: Path and/or alias finding1Lawrence D'Oliveiro
31 Jul 24    i`- Re: Path and/or alias finding1Lawrence D'Oliveiro
14 Jun 24    `* Re: Path and/or alias finding3John-Paul Stewart
14 Jun 24     `* Re: Path and/or alias finding2Carlos E.R.
31 Jul 24      `- Re: Path and/or alias finding1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal