Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: exec

07 Oct

Get Result of Command using Python in Linux

Execute a command and get its results using python in Linux


import commands

result = commands.getoutput("ls")
admin Posted in Code, Linux, Python Code, commnad, exec, execute, Linux, output, Python 1 Comment

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑