home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.linux.misc      Linux-specific topics not covered by oth      135,536 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 133,915 of 135,536   
   Richard Kettlewell to c186282@nnada.net   
   Re: Mystery - Python Executing Shell Scr   
   26 Dec 25 18:26:39   
   
   From: invalid@invalid.invalid   
      
   c186282  writes:   
   > SO ... can/does os.system() execute the scripts in   
   > some "alternate/transient universe" where they may   
   > not have actual lasting effect on v4l2 settings ???   
      
   No.   
      
   > There are a few alts to os.system() ... some of   
   > which allow "shell = True". Would this be 'better'   
   > or should os.system() do it properly ??? Any   
   > experiences here ?   
      
   shell=True is an option to the subprocess methods, and means the command   
   will be execute via the shell rather than directly. If you’re passing   
   arguments to the script then it makes a difference in how you pass them;   
   if not then it makes rather little difference.   
      
   If the script is being run but isn’t doing what you expect, then you   
   need to debug the script.   
      
   --   
   https://www.greenend.org.uk/rjk/   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca