0

I have written some code in python to display list of data using more option in Unix command shell. If the data is lengthy the below command is failed. Could anyone please suggest me the solution for this.

subprocess.call(['echo "'+str(output)+'" | more'], shell=True)

Error :

[Errno 7] Argument list too long

Expected Output

1
2
3
.
.
.
n
More

-

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.