Roy> I need to run a command using subprocess.Popen() and have stdin Roy> connected to the null device. os.path.devnull should do what you want: >>> os.path.devnull '/dev/null' >>> import ntpath >>> ntpath.devnull 'nul' -- Skip Montanaro - skip at pobox.com - http://www.smontanaro.net/