I want to start a program and pass arguments used by that program. How to do this using os.spawnl ?

Use the subprocess module instead, as described in the documentation.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.