ubuntu - which user's privileges python program uses to execute command via subprocess? -


i have stabled password less login between 2 ubuntu system run following command

$scp file user@hostname2:/tmp/ 

it works fine , got file transferred without asking password. when try execute same through following python statement-

subprocess.check_output(['scp', file, r'user@hostname2:/tmp/']) 

i not able copy files remote computer, bit curious user's privileges python program uses execute command via subprocess ?

how can debug such programs ?


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -