Re: [Shell] help with Tarring files

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45322
interpreted = N
texte = Joshua Lynn wrote:> the same level as checkout). The tar gets made in the correct location, > but is created with the following folder structure: a folder called > .. with a folder called outgoing inside it. inside that is where the > tarred files are. Because that is exactly what you told it to do. Tar pays attention to the path that you pass in, figuring that it is significant information.> [shell]tar -cf - ../outgoing/[header21]|gzip> > ../outgoing/[header21].tar.gz[/shell]Try this instead:[shell]tar -C ../outgoing -cf - [header21] | gzip > [header21].tar.gz[/shell]or some such. You should also check to see if your tar command supports gzip internally, which would simplify the command considerably:[shell]tar -C ../outgoing -zcf [header21].tar.gz [header21][/shell]HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [Shell] help with Tarring files (John Peacock 2002)
  2. Re: [Shell] help with Tarring files (Erol Guneri 2002)
  3. [Shell] help with Tarring files (Joshua Lynn 2002)
Joshua Lynn wrote:> the same level as checkout). The tar gets made in the correct location, > but is created with the following folder structure: a folder called > .. with a folder called outgoing inside it. inside that is where the > tarred files are. Because that is exactly what you told it to do. Tar pays attention to the path that you pass in, figuring that it is significant information.> [shell]tar -cf - ../outgoing/[header21]|gzip> > ../outgoing/[header21].tar.gz[/shell]Try this instead:[shell]tar -C ../outgoing -cf - [header21] | gzip > [header21].tar.gz[/shell]or some such. You should also check to see if your tar command supports gzip internally, which would simplify the command considerably:[shell]tar -C ../outgoing -zcf [header21].tar.gz [header21][/shell]HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ John Peacock

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebDNA Grep help wanted (2004) Orderfile (2005) Re[2]: 2nd WebCatalog2 Feature Request (1996) Re:2nd WebCatalog2 Feature Request (1996) Need relative path explanation (1997) WebCatalog on G3 Macs? (1997) return two fields w/ [lookup] (1998) WC2.0 Memory Requirements (1997) Weird problems with [SHOWIF]s (1997) hiding links (1999) keep W* in front applescript? (1998) Search returns all, not 20 (1997) Custom WebCat Prefs ... (1997) Re:2nd WebCatalog2 Feature Request (1996) can anyone confirm this behavior? (2003) [ShowIf] and empty fields (1997) Sorting (1998) WebCatalog NT beta 18 problem (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) WebDNA 6.0a for Apache 2.2.4 (2007)