Re: How to execute commands in internal zones of solaris using python running from the global zone ?

2008-08-13 Thread nntpman68
Hishaam wrote: How to execute commands in internal zones of solaris using python running from the global zone ? i tried -- 1 os.popen(zlogin zone1) 2 os.popen(zonename) the 2nd command executes back into the global zone and not into the internal zone can anyone help? Hishaam Very probably

Re: How to execute commands in internal zones of solaris using python running from the global zone ?

2008-08-13 Thread nntpman68
Hishaam wrote: How to execute commands in internal zones of solaris using python running from the global zone ? i tried -- 1 os.popen(zlogin zone1) 2 os.popen(zonename) the 2nd command executes back into the global zone and not into the internal zone can anyone help? Hmm, I was't

How to execute commands in internal zones of solaris using python running from the global zone ?

2008-08-11 Thread Hishaam
How to execute commands in internal zones of solaris using python running from the global zone ? i tried -- 1 os.popen(zlogin zone1) 2 os.popen(zonename) the 2nd command executes back into the global zone and not into the internal zone can anyone help? Hishaam --

Re: How to execute commands in internal zones of solaris using python running from the global zone ?

2008-08-11 Thread Calvin Spealman
You might try subprocess, first of all. Use it to launch zlogin and then treat it like a shell and write 'zonename\n' to its stdin, to simulate running it as a user. This is a good bet, but I don't have either available to try it. The subprocess documentation covers invoking a process and writing