cron popen xen-create-image

Christian Kortenhorst namit at namit.org
Mon Mar 3 23:28:24 EST 2008


Hey just wondering could anyone help me

Have script that runs through cron but seams to run but xen-create-image
goes to end but shoes up errors because some stuff it not being passed.
./grabJob.py
        # RUN all the Create ENVIRONMNET commands here
            run="/usr/bin/xen-create-image --hostname=%s --ip=%s" %
(hostname, ipadd[0])
            print run;
            try:
                fs=os.popen(run)
                for file in fs:
                    error = error + file

If run just ./grabJob.py it works ok and outputs
en:/var/www/apache2-default# ./grabJob.py
Grabbing Jobs
running create
Jobs runnning....
Creating environment ckortenhorst1
/usr/bin/xen-create-image --hostname=ckortenhorst1 --ip=192.168.0.111
DONE

Can anyone help

-- 
Christian Kortenhorst
+353-(0)87-6183349
+353-(0)1-4966287
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080304/a2557d10/attachment.html>


More information about the Python-list mailing list