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

-

sireesha j
  • 703
  • 3
  • 9
  • 23

0 Answers0