Skip to content
Advertisement

(py2.7) long “echo” via subprocess

I’m starting to write some python code to initiate new servers/VM(s) with proxy servers

This hasn’t been working due to syntax error

JavaScript

so I tried dividing n into

JavaScript

But still this syntax error?

JavaScript

Thanks! I’ve tried many combinations of ‘ and ” but no luck.

Advertisement

Answer

The problem is "echo "http_proxy="http://proxy.srx.com:80/""... is not a valid string

you should use:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement