untar from run command in fibre
        Posted  
        
            by 
                Shah.Bhavesh
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Shah.Bhavesh
        
        
        
        Published on 2012-05-31T10:31:45Z
        Indexed on 
            2012/05/31
            10:41 UTC
        
        
        Read the original article
        Hit count: 357
        
i want to untar file from source to destination
with below statement
`def untar(source,destination):
run("tar -xf {0} {1}".format(source,destination))
`
i am getting Error
C:\Users\test\Desktop\fabric>fab -H user@host-p pass untar:source
=/shared/sample.tar,destination=/home/
Traceback (most recent call last):
File "C:\Users\shasmukh\AppData\Roaming\Python\Python27\site-packages\fabric\m
ain.py", line 630, in main
docstring, callables, default = load_fabfile(fabfile)
File "C:\Users\shasmukh\AppData\Roaming\Python\Python27\site-packages\fabric\m
ain.py", line 163, in load_fabfile
imported = importer(os.path.splitext(fabfile)[0])
File "C:\Users\shasmukh\Desktop\fabric\fabfile.py", line 11
def copy(source,destination)
                           ^
SyntaxError: invalid syntax
        © Stack Overflow or respective owner