Clearly, I made some typing mistake, it's the shbang line! it should be:
#!/usr/bin/python
then, just set os.environ is okay:
os.environ["target"] = "localhost.localdomain.org"
according python's documentation, setting os.environ will implicitly call
os.putenv().
2
bin/bash
echo $target
exit 0
But, unluckily, it didn't work. What can I do?
TIA,
--
BRs,
Rockins Chen
UESTC, Chengdu, Sichuan, China
http://www.dormforce.net/blog/rockins
http://rockins.cublog.cn
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list