473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

os.system('tar -c * | tar -C dst') ##Any other suggestions...

I'm getting the following error:

tar: You must specify one of the `-Acdtrux' options
Try `tar --help' or `tar --usage' for more information.
tar: -: Cannot write: Broken pipe
tar: Error is not recoverable: exiting now

Any suggestions on a different approach or fix?

-List

Apr 24 '07 #1
2 1975
li*************@gmail.com:
Any suggestions on a different approach or fix?
Check your commandline! The second command is wrong, -C is not valid as
the only option, a command is missing.
If you just want to archive files in a tarball try: "tar -c * dst.tar"
or take a look at Python's tarfile lib.

Thomas

--
sinature: http://nospam.nowire.org/signature_usenet.png
Apr 24 '07 #2
li*************@gmail.com wrote:
I'm getting the following error:

tar: You must specify one of the `-Acdtrux' options
Try `tar --help' or `tar --usage' for more information.
tar: -: Cannot write: Broken pipe
tar: Error is not recoverable: exiting now

Any suggestions on a different approach or fix?
What do you want to do? What do you think that is supposed to do? What
does this have to do with Python?
--
Michael Hoffman
Apr 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sami Viitanen | last post by:
Hello, I'm having problems with os.system. If I execute some 'cd directory' command with it, after that the script is on the same directory level as it was before the command. Any ideas ?
0
by: santi | last post by:
Hi, very often, when I copy a file with the following code: System.IO.File.Copy(source, destination, true); the copied file can not be deleted until the program exits. If you try to delete it...
3
by: Husam | last post by:
Hi EveryBody: by VB.Net How can I amke windows application project start with starting of opreating system and end with ending the opreating system, for exaple like the windows service project...
3
by: Frank Liebelt | last post by:
Hi I am a beginner in c++. In my little program i would unpack a tar file with a system call. system("tar -xfv unpack.tar"); Is it possible to check that the tar command was successfull or...
4
by: Mark | last post by:
Hi everyone, I was wondering if someone could make a suggestion about a CMS which has the following features: I did check out Google etc but there are soooo many options... The CMS would have...
4
by: Mohsen | last post by:
Hello everybody, I am writing a C++ code to do some Quantitative Genetics calculations and I have to use another program (which is also a C++ code) inside my program. I have heard that it is...
4
by: Mikael Syska | last post by:
Hey, I have a site in asp.net ... and want to place some add's ... just wonddered if there were any premade admin system's for that? with a mssql backend ... Been searching google and I can't...
15
by: iffa n wanie | last post by:
Develop a library information system that provides the following functionalities: a) Add New Patron b) Search Patron c) Check Out Book The patron ID is unique and is generated automatically...
3
by: mvjohn100 | last post by:
Dear Friends, For moving files I used the following code sprintf(cpy,"mv %s%0.2f %s%0.2f","/var/data/lo,versionold,"/var/data/lo2",versionnew); system(cpy); Is there any problem using...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.