Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #56524

Re: tar problem

From Lew Pitcher <lew.pitcher@digitalfreehold.ca>
Newsgroups comp.os.linux.misc
Subject Re: tar problem
Date 2024-06-10 22:56 +0000
Organization A noiseless patient Spider
Message-ID <v480bn$etuo$3@dont-email.me> (permalink)
References <v44em0$3i8j8$1@dont-email.me>

Show all headers | View raw


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"

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

tar problem db <dieterhansbritz@gmail.com> - 2024-06-09 14:36 +0000
  Re: tar problem Marco Moock <mm+usenet-es@dorfdsl.de> - 2024-06-09 17:28 +0200
  Re: tar problem Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-06-09 16:01 +0000
  Re: tar problem Richard Kettlewell <invalid@invalid.invalid> - 2024-06-09 18:22 +0100
    Re: tar problem Robert Heller <heller@deepsoft.com> - 2024-06-09 19:12 +0000
      Re: tar problem db <dieterhansbritz@gmail.com> - 2024-06-10 11:34 +0000
        Re: tar problem Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-06-10 12:35 +0000
          Re: tar problem "Carlos E. R." <robin_listas@es.invalid> - 2024-06-10 23:00 +0200
            Re: tar problem Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-06-10 22:35 +0000
              Re: tar problem "Carlos E. R." <robin_listas@es.invalid> - 2024-06-11 00:55 +0200
                Re: tar problem db <dieterhansbritz@gmail.com> - 2024-06-11 08:39 +0000
                Re: tar problem Rich <rich@example.invalid> - 2024-06-11 17:07 +0000
                Re: tar problem Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-06-11 18:36 +0000
                Re: tar problem db <dieterhansbritz@gmail.com> - 2024-06-12 12:38 +0000
                Re: tar problem Ralf Fassel <ralfixx@gmx.de> - 2024-06-12 18:49 +0200
                Re: tar problem Richard Kettlewell <invalid@invalid.invalid> - 2024-06-12 20:16 +0100
                Re: tar problem Robert Heller <heller@deepsoft.com> - 2024-06-12 21:08 +0000
                Re: tar problem Richard Kettlewell <invalid@invalid.invalid> - 2024-06-13 08:33 +0100
                Re: tar problem Ralf Fassel <ralfixx@gmx.de> - 2024-06-13 10:50 +0200
                Re: tar problem "Carlos E. R." <robin_listas@es.invalid> - 2024-06-13 20:00 +0200
      Re: tar problem candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-06-12 06:45 +0000
  Re: tar problem Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-06-10 22:56 +0000
    Re: tar problem "Carlos E. R." <robin_listas@es.invalid> - 2024-06-11 02:42 +0200
    Re: tar problem db <dieterhansbritz@gmail.com> - 2024-06-12 12:41 +0000
  Re: tar problem nobody@nowhere.invalid (Marc Olschok) - 2024-06-12 15:29 +0000
    Re: tar problem Robert Heller <heller@deepsoft.com> - 2024-06-12 18:21 +0000
  Re: tar problem marrgol <marrgol@address.invalid> - 2024-06-12 19:33 +0200
  Re: tar problem db <dieterhansbritz@gmail.com> - 2024-06-14 14:35 +0000
    Re: tar problem Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-06-14 14:38 +0000
      Path and/or alias finding "Carlos E.R." <robin_listas@es.invalid> - 2024-06-14 19:42 +0200
        Re: Path and/or alias finding Robert Heller <heller@deepsoft.com> - 2024-06-14 18:50 +0000
          Re: Path and/or alias finding "Carlos E.R." <robin_listas@es.invalid> - 2024-06-14 21:59 +0200
          Re: Path and/or alias finding Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-06-14 20:24 +0000
            Re: Path and/or alias finding Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-06-14 20:30 +0000
            Re: Path and/or alias finding "Carlos E.R." <robin_listas@es.invalid> - 2024-06-14 22:43 +0200
        Re: Path and/or alias finding John-Paul Stewart <jpstewart@personalprojects.net> - 2024-06-14 15:30 -0400
          Re: Path and/or alias finding "Carlos E.R." <robin_listas@es.invalid> - 2024-06-14 22:02 +0200

csiph-web