spawn in jaguar

Piet van Oostrum piet at cs.uu.nl
Sun Feb 16 15:21:46 EST 2003


>>>>> Jose <Jose at somplace.com> (J) wrote:

J> Dear Python experts,
J> I am trying to use python on max OS10 (specifacally jaguar which has
J> python already installed by default) to copy a set of files from one
J> folder to another.  Actaully I want to only copy files that are older
J> then one year and thought Python would be a great way to do this (it
J> works great on my windows XP box) and was hoping to use spwanv to
J> automate ditto to do this.  When I set var =['ditto', '-rsrcFork',
J> 'file1', 'file2'], and issue the command os.spawnv(os.P_NOWAIT, 'ditto',
J> var) I get a number back (which I am assuming is a PID for this
J> process), but nothing happens.  Does anyone know what I am doing wrong,
J> or how to accomplish what I need to get done.  Does anyone have any
J> experience with jaguar and python?   

os.spawnv(os.P_NOWAIT, '/usr/bin/ditto', var)
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl




More information about the Python-list mailing list