Hi, Is there a bug under cron on CentOS 5.2 x86_64 ? kernel 2.6.18-92 Something is strange on my system. I have a simple shell script to run on many computers . When I run this script by hand, everything works fine on all workstations. But if I start this script via crontab vmplayer is never install with no errors. Any ideas ? Best regards. #/usr/bin/yum -e 0 -d 0 -y remove VMware-Player.x86_64 #/usr/bin/yum -e 0 -d 0 -y install VMware-Player-2.5.1-126130.x86_64 #/usr/bin/vmware-networks --stop #/usr/bin/vmware-networks --migrate-network-settings /vmware/virtualmachine #/usr/bin/vmware-networks --start #/sbin/chkconfig --level 345 vmware on __________________________ Ce message (et toutes ses pi?ces jointes ?ventuelles) est confidentiel et ?tabli ? l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme ? sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'IFP d?cline toute responsabilit? au titre de ce message. This message and any attachments (the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. IFP should not be liable for this message. Visitez notre site Web / Visit our web site : http://www.ifp.fr __________________________
MOKRANI Rachid wrote:> #/usr/bin/yum -e 0 -d 0 -y remove VMware-Player.x86_64 > #/usr/bin/yum -e 0 -d 0 -y install VMware-Player-2.5.1-126130.x86_64 > #/usr/bin/vmware-networks --stop > #/usr/bin/vmware-networks --migrate-network-settings /vmware/virtualmachine > #/usr/bin/vmware-networks --start > #/sbin/chkconfig --level 345 vmware onIs there a reason why you have a comment sign in front of each line? Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20090320/c02883ef/attachment-0003.sig>
It's only a prompt. -----Message d'origine----- De : centos-bounces at centos.org [mailto:centos-bounces at centos.org] De la part de Ralph Angenendt Envoy? : vendredi 20 mars 2009 10:36 ? : centos at centos.org Objet : Re: [CentOS] Bug with cron ? MOKRANI Rachid wrote:> #/usr/bin/yum -e 0 -d 0 -y remove VMware-Player.x86_64 > #/usr/bin/yum -e 0 -d 0 -y install VMware-Player-2.5.1-126130.x86_64 > #/usr/bin/vmware-networks --stop > #/usr/bin/vmware-networks --migrate-network-settings /vmware/virtualmachine > #/usr/bin/vmware-networks --start > #/sbin/chkconfig --level 345 vmware onIs there a reason why you have a comment sign in front of each line? Ralph __________________________ Ce message (et toutes ses pi?ces jointes ?ventuelles) est confidentiel et ?tabli ? l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme ? sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'IFP d?cline toute responsabilit? au titre de ce message. This message and any attachments (the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. IFP should not be liable for this message. Visitez notre site Web / Visit our web site : http://www.ifp.fr __________________________
From: MOKRANI Rachid <Rachid.MOKRANI at ifp.fr>> Something is strange on my system. I have a simple shell script to run > on many computers . When I run this script by hand, everything works > fine on all workstations. > But if I start this script via crontab vmplayer is never install with no > errors. > #/usr/bin/yum -e 0 -d 0 -y remove VMware-Player.x86_64 > #/usr/bin/yum -e 0 -d 0 -y install VMware-Player-2.5.1-126130.x86_64 > #/usr/bin/vmware-networks --stop > #/usr/bin/vmware-networks --migrate-network-settings > /vmware/virtualmachine > #/usr/bin/vmware-networks --start > #/sbin/chkconfig --level 345 vmware onWhen you say "I run this script by hand", do you mean run the script itself or each line of the script as you showed above? Did you try to redirect stdout/stderr to files to see what is going on? JD