Re: .sh tar

2010-06-05 Thread ill...@gmail.com
On 3 June 2010 11:11, Chip Camden sterl...@camdensoftware.com wrote:
 On Jun 03 2010 10:03, ill...@gmail.com wrote:
 On 3 June 2010 07:42, Polytropon free...@edvax.de wrote:
  On Thu, 03 Jun 2010 09:32:17 +0800, Aiza aiz...@comclark.com wrote:
  When I exec tar from within a .sh shell script I get this message
  tar: Removing leading '/' from member names
  I have tar outputting to  /dev/null and still get this message.
  With -v or without makes no difference.
 
  How can I stop this
 
  Depends on WHAT you want to stop - the illness or just its symptoms. :-)
 
  If it's just about symptoms, redirect the error messages into
  nirvana.
 
         tar [opts] [file] 1/dev/null 21
 
  If you want to remove the REASON for tar: Removing leading '/'
  from member names, you need to re-create the archives and
  start archiving from a relative point (instead of from an
  absolute one), e. g.
 
         # cd /
         # tar cvf etc.tar etc/
 
  (lazy man's method) instead of
 
         # tar cvf etc.tar /etc/
 
  The extraction of the archive will usually start in the
  current directory, so
 
         # cd /usr/local/bin
         # tar xvf etc.tar
 
  won't give you an etc/ subtree in /usr/local/bin directory.
 

 tar -cvf - ./ -C /  /dev/null
 ?

 I can't help wondering why the 'v' option is being specified, unless
 /dev/null needs more playing time.

Reflex, but you're right, it shouldn't be in there.


-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: .sh tar

2010-06-05 Thread Polytropon
On Sat, 5 Jun 2010 12:27:09 -0400, ill...@gmail.com ill...@gmail.com wrote:
 On 3 June 2010 11:11, Chip Camden sterl...@camdensoftware.com wrote:
  On Jun 03 2010 10:03, ill...@gmail.com wrote:
  On 3 June 2010 07:42, Polytropon free...@edvax.de wrote:
   Depends on WHAT you want to stop - the illness or just its symptoms. :-)
  
   If it's just about symptoms, redirect the error messages into
   nirvana.
  
          tar [opts] [file] 1/dev/null 21
  
   If you want to remove the REASON for tar: Removing leading '/'
   from member names, you need to re-create the archives and
   start archiving from a relative point (instead of from an
   absolute one), e. g.
  
          # cd /
          # tar cvf etc.tar etc/
  
   (lazy man's method) instead of
  
          # tar cvf etc.tar /etc/
  
   The extraction of the archive will usually start in the
   current directory, so
  
          # cd /usr/local/bin
          # tar xvf etc.tar
  
   won't give you an etc/ subtree in /usr/local/bin directory.
  
 
  tar -cvf - ./ -C /  /dev/null
  ?
 
  I can't help wondering why the 'v' option is being specified, unless
  /dev/null needs more playing time.
 
 Reflex, but you're right, it shouldn't be in there.

Your tenmelonhundredgigahertz plentycore machines have to process
useless amounts of data to be discarded, or they wouldn't be
worth their price. :-)

Seriously, pure reflex. No -v needed here as you are not interested
in monitoring the process.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: .sh tar

2010-06-03 Thread Polytropon
On Thu, 03 Jun 2010 09:32:17 +0800, Aiza aiz...@comclark.com wrote:
 When I exec tar from within a .sh shell script I get this message
 tar: Removing leading '/' from member names
 I have tar outputting to  /dev/null and still get this message.
 With -v or without makes no difference.
 
 How can I stop this

Depends on WHAT you want to stop - the illness or just its symptoms. :-)

If it's just about symptoms, redirect the error messages into
nirvana.

tar [opts] [file] 1/dev/null 21

If you want to remove the REASON for tar: Removing leading '/' 
from member names, you need to re-create the archives and
start archiving from a relative point (instead of from an
absolute one), e. g.

# cd /
# tar cvf etc.tar etc/

(lazy man's method) instead of

# tar cvf etc.tar /etc/

The extraction of the archive will usually start in the
current directory, so

# cd /usr/local/bin
# tar xvf etc.tar

won't give you an etc/ subtree in /usr/local/bin directory.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: .sh tar

2010-06-03 Thread ill...@gmail.com
On 3 June 2010 07:42, Polytropon free...@edvax.de wrote:
 On Thu, 03 Jun 2010 09:32:17 +0800, Aiza aiz...@comclark.com wrote:
 When I exec tar from within a .sh shell script I get this message
 tar: Removing leading '/' from member names
 I have tar outputting to  /dev/null and still get this message.
 With -v or without makes no difference.

 How can I stop this

 Depends on WHAT you want to stop - the illness or just its symptoms. :-)

 If it's just about symptoms, redirect the error messages into
 nirvana.

        tar [opts] [file] 1/dev/null 21

 If you want to remove the REASON for tar: Removing leading '/'
 from member names, you need to re-create the archives and
 start archiving from a relative point (instead of from an
 absolute one), e. g.

        # cd /
        # tar cvf etc.tar etc/

 (lazy man's method) instead of

        # tar cvf etc.tar /etc/

 The extraction of the archive will usually start in the
 current directory, so

        # cd /usr/local/bin
        # tar xvf etc.tar

 won't give you an etc/ subtree in /usr/local/bin directory.


tar -cvf - ./ -C /  /dev/null
?

-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: .sh tar

2010-06-03 Thread Polytropon
On Thu, 3 Jun 2010 10:03:04 -0400, ill...@gmail.com ill...@gmail.com wrote:
 tar -cvf - ./ -C /  /dev/null
 ?

Yes, of course! But I said lazy man's method, and lazy does
only include x, c, v and f options, and -C is substituted by
a cd command. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: .sh tar

2010-06-03 Thread Chip Camden
On Jun 03 2010 10:03, ill...@gmail.com wrote:
 On 3 June 2010 07:42, Polytropon free...@edvax.de wrote:
  On Thu, 03 Jun 2010 09:32:17 +0800, Aiza aiz...@comclark.com wrote:
  When I exec tar from within a .sh shell script I get this message
  tar: Removing leading '/' from member names
  I have tar outputting to  /dev/null and still get this message.
  With -v or without makes no difference.
 
  How can I stop this
 
  Depends on WHAT you want to stop - the illness or just its symptoms. :-)
 
  If it's just about symptoms, redirect the error messages into
  nirvana.
 
         tar [opts] [file] 1/dev/null 21
 
  If you want to remove the REASON for tar: Removing leading '/'
  from member names, you need to re-create the archives and
  start archiving from a relative point (instead of from an
  absolute one), e. g.
 
         # cd /
         # tar cvf etc.tar etc/
 
  (lazy man's method) instead of
 
         # tar cvf etc.tar /etc/
 
  The extraction of the archive will usually start in the
  current directory, so
 
         # cd /usr/local/bin
         # tar xvf etc.tar
 
  won't give you an etc/ subtree in /usr/local/bin directory.
 
 
 tar -cvf - ./ -C /  /dev/null
 ?
 
I can't help wondering why the 'v' option is being specified, unless
/dev/null needs more playing time.

-- 
Sterling (Chip) Camden | camdensoftware.com | chipstips.com | chipsquips.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


.sh tar

2010-06-02 Thread Aiza

When I exec tar from within a .sh shell script I get this message
tar: Removing leading '/' from member names
I have tar outputting to  /dev/null and still get this message.
With -v or without makes no difference.

How can I stop this
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: .sh tar

2010-06-02 Thread Anh Ky Huynh
On Thu, 03 Jun 2010 09:32:17 +0800
Aiza aiz...@comclark.com wrote:

 When I exec tar from within a .sh shell script I get this message
 tar: Removing leading '/' from member names
 I have tar outputting to  /dev/null and still get this message.
 With -v or without makes no difference.
 
 How can I stop this

How about
tar ... 1/dev/null 21
?

-- 
Anh Ky Huynh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org