Re: [Shell] help with Tarring files

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45320
interpreted = N
texte = Hi Jos,Have you tried using ./outgoing instead of ../outgoing.Erol----- Original Message ----- From: Joshua Lynn To: WebCatalog Talk Sent: Friday, November 15, 2002 4:23 PM Subject: [Shell] help with Tarring files > Anyone out there a UNIX pro? > > I'm working with the following code on an OSX.1 server running WebSTAR > 5. > > I'm able to copy the files correctly, create the tar.gz correctly, then > download it correctly, the only issue that I'm having is as follows: > The [shell] command is working within the /checkout/ directory, and I'm > creating the tar in the /outgoing/ directory, which is one level up (at > 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. > > I've tried removing the ../ in both instances within the tar command... > but then the file gets made in the wrong location. > > CODE: > [Shell]mkdir ../outgoing/[header21][/shell] > [shell][lineitems][hideif [sku]^publications]cp -r > /Applications/4DWebStar/WebServer/retail/mac/[grep search= > &replace=_][sku][/grep].sit > /Applications/4DWebStar/WebServer/FontBureau/outgoing/[header21]/[grep > search= &replace=_][sku][/grep].sit;[/hideif][/lineitems][/shell] > [shell]tar -cf - ../outgoing/[header21]|gzip> > ../outgoing/[header21].tar.gz[/shell] > > All [shell] commands are actually on one line. > > please help, I'm brand new to UNIX. Thanks! > > ciao > -jos > > > ------------------------------------------------------------- > 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/ > >------------------------------------------------------------- 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)
Hi Jos,Have you tried using ./outgoing instead of ../outgoing.Erol----- Original Message ----- From: Joshua Lynn To: WebCatalog Talk Sent: Friday, November 15, 2002 4:23 PM Subject: [shell] help with Tarring files > Anyone out there a UNIX pro? > > I'm working with the following code on an OSX.1 server running WebSTAR > 5. > > I'm able to copy the files correctly, create the tar.gz correctly, then > download it correctly, the only issue that I'm having is as follows: > The [shell] command is working within the /checkout/ directory, and I'm > creating the tar in the /outgoing/ directory, which is one level up (at > 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. > > I've tried removing the ../ in both instances within the tar command... > but then the file gets made in the wrong location. > > CODE: > [shell]mkdir ../outgoing/[header21][/shell] > [shell][lineitems][hideif [sku]^publications]cp -r > /Applications/4DWebStar/WebServer/retail/mac/[grep search= > &replace=_][sku][/grep].sit > /Applications/4DWebStar/WebServer/FontBureau/outgoing/[header21]/[grep > search= &replace=_][sku][/grep].sit;[/hideif][/lineitems][/shell] > [shell]tar -cf - ../outgoing/[header21]|gzip> > ../outgoing/[header21].tar.gz[/shell] > > All [shell] commands are actually on one line. > > please help, I'm brand new to UNIX. Thanks! > > ciao > -jos > > > ------------------------------------------------------------- > 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/ > >------------------------------------------------------------- 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/ Erol Guneri

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:

HTML Editors (1997) Unable to open the demo file (1998) WebCatalog2 for NT Beta Request (1997) more Dreamweaver Extensions feedback (2000) RE: Timer Values on [redirect] (1998) French characters in variables (2001) Running 2 two WebCatalog.acgi's (1996) [WebDNA] Wishlist: ignore whitespace in database changes (2016) Was it something I said??? (1998) 2cd pair.. [math] and European Date format (2004) Re:E-Mailer (WebCatb15acgiMac) (1997) Sorting error (1997) NT error logs (1997) Hiding the URL(was Cart ID Duplication) (2001) Possible Bug in 2.0b15.acgi (1997) [WebDNA] Test - no messages since 9th of June 2009. (2009) Re:Signal Raised (1997) summ=T (2003) Emailer choke (1997) RE: Credit card processing - UK (1997)