logo       

Executing a external script and setting the file system context: msg#00065

lang.jython.user

Subject: Executing a external script and setting the file system context

I need to be able to start a external process and have the file space of the target process be set to the target directory, not the callers directory:

For example assuming I start a jython shell in

/usr/me/

and I issue the command

os.system('jython /another/dir/touchscript.py')

and /another/dir/touchscript.py contains

import os
os.system('touch afile')

I need the file created to be in /another/dir/ not in /usr/me

Thanks,

Anthony

------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise