shell commands in python

Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Mar 2007
Posts: 5
Reputation: pinder is an unknown quantity at this point 
Solved Threads: 0
pinder pinder is offline Offline
Newbie Poster

shell commands in python

 
0
  #1
Apr 13th, 2007
hey guys im trying to express this in python,

for i in $(ls lsb/desktop); do tjreport lsb/desktop/$i/journal* > lsb/desktop/$i/${i}fail; tjreport -d lsb/desktop/$i/journal* > lsb/desktop/$i/${i}all; done

its shell commands but i dont know how to do this in python
could u guys help please

thx
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC