Script
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts >
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts > cat list-files.py
#!/usr/local/bin/python3.5
import subprocess
subprocess.call(["ls", "-altr"])
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts >
Execution
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts/Memorable-Tests >
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts/Memorable-Tests > /Python-scripts/list-files.py
total 8
-rw-r--r--. 1 root root 0 Feb 27 07:02 Kolkata-2001-K10.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 PortofSpain-1976-K02.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Chennai-2008-K15.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Oval-1971-K01.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Madras-1998-K08.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Lords-2014-K17.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Delhi-1999-K09.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Mumbai-2016-K19.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Kanpur-1996-K07.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Adelaide-2003-K12.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Mohali-2010-K16.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Lords-1986-K04.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Kolkata-2005-K13.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Melbourne-1977-K03.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Calcutta-1993-K05.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Perth-2008-K14.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Headingley-2002-K11.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Vishakapatnam-2016-K18.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Ahmedabad-1996-K06.txt
drwxr-xr-x. 3 root root 4096 Feb 27 07:26 ..
drwxr-xr-x. 2 root root 4096 Feb 27 07:38 .
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts/Memorable-Tests >
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts/Memorable-Tests >
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts >
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts > cat list-files.py
#!/usr/local/bin/python3.5
import subprocess
subprocess.call(["ls", "-altr"])
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts >
Execution
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts/Memorable-Tests >
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts/Memorable-Tests > /Python-scripts/list-files.py
total 8
-rw-r--r--. 1 root root 0 Feb 27 07:02 Kolkata-2001-K10.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 PortofSpain-1976-K02.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Chennai-2008-K15.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Oval-1971-K01.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Madras-1998-K08.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Lords-2014-K17.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Delhi-1999-K09.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Mumbai-2016-K19.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Kanpur-1996-K07.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Adelaide-2003-K12.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Mohali-2010-K16.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Lords-1986-K04.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Kolkata-2005-K13.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Melbourne-1977-K03.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Calcutta-1993-K05.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Perth-2008-K14.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Headingley-2002-K11.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Vishakapatnam-2016-K18.txt
-rw-r--r--. 1 root root 0 Feb 27 07:02 Ahmedabad-1996-K06.txt
drwxr-xr-x. 3 root root 4096 Feb 27 07:26 ..
drwxr-xr-x. 2 root root 4096 Feb 27 07:38 .
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts/Memorable-Tests >
ip-172-31-24-12.us-west-2.compute.internal: /Python-scripts/Memorable-Tests >
No comments:
Post a Comment