I'll get a tarred file from a remote location in the format of .tar.gz which my program needs to un-tar it into a specific destination foler and a file
tar -C /local/server/destination/path/un-tar -zxvf /local/server/source/path/remote_file.txt.tar.gz stage_file.txt
but that's not what is happening......the un-tarred file though gets created in path /local/server/destination/path/un-tar but with the name remote_file.txt and NOT stage_file.txt!! Is there a way out?
That's true!! I might have tried many options but pasted here something wrong!! :o
Works perfect!! :D. Thanks so much!!
Hi radoulov,
The problem is there is very high chance that the client will send us a .tar.gz file having the archived file of something totally different name; I would not know which file(name) it had un-tarred!! Hence this option is not viable.