Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Receiving error when extracting file from tar

Status
Not open for further replies.

Wrathchild

Technical User
Aug 24, 2001
303
US
I'm creating an automated deployment script and when I untar files to the server I receive an error message saying "...can't update the time..." The file DOES get extracted fine and overwrites the original, I just need to either prevent that message from occuring or be able to handle for that error so my script doesn't stop since it's checking for errors after every command.

thanks
 
Try using the -m flag. This instructs the tar to use time of extraction as the mod time. The default is to try and preserve the modification time of the files.

Mike

Unix *is* user friendly. It's just selective about who its friends are.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top