[xen-tools-discuss] cron popen xen-create-image
Christian Kortenhorst
namit at namit.org
Tue Mar 4 05:50:49 CET 2008
Hey just wondering could anyone help me
When i run script using cron i get this problem
I: Extracting tzdata...
I: Extracting util-linux...
I: Extracting zlib1g...
W: Failure trying to run: chroot /tmp/2tKOOX5txm mount -t proc proc /proc
without it works perfectly
when just running script, any ideas what can do?
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
More information about the xen-tools-discuss
mailing list