I have a script which runs copy command to copy files and directories. Since, i have arguments stored in variables.
copy_cmd = ['Lang=en_US' , '/bin/cp' , '-r' , '-v']
Option['source']
Option['destination']
I'm passing the value of Option['source'] & Option['destination'] at run time. I'am unable to perform the command and getting....
child exception
AttributeError: list object has no attribute rfind
The command which i'am using is
copy_pid = subprocess.Popen([copy_cmd , Option['source'] , '/.' , 'Option['destination']'] , stdin = subprocess.PIPE , stdout = subprocess.PIPE)