-----Message d'origine-----
De : centos-bounces@centos.org [mailto:centos-bounces@centos.org] De la part de Ralph Angenendt
Envoyé : vendredi 20 mars 2009 10:36
À : centos@centos.org
Objet : Re: [CentOS] Bug with cron ?
Is 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
__________________________
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
03-20-2009, 09:09 AM
John Doe
Bug with cron ?
From: MOKRANI Rachid <Rachid.MOKRANI@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 on
When 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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
03-20-2009, 09:52 AM
"MOKRANI Rachid"
Bug with cron ?
Hi,
The following script works fine on all worksation when it's start manually or if I run it line by line manually.
If I would like to run it on crontab, the following line
"/usr/bin/yum -y install VMware-Player-2.5.1-126130.x86_64"
not install the new release of vmplayer with no errors.
/sbin/chkconfig --level 345 vmware on
##############################################
-----Message d'origine-----
De : centos-bounces@centos.org [mailto:centos-bounces@centos.org] De la part de John Doe
Envoyé : vendredi 20 mars 2009 11:09
À : CentOS mailing list
Objet : Re: [CentOS] Bug with cron ?
From: MOKRANI Rachid <Rachid.MOKRANI@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 on
When 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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
__________________________
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
__________________________
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
03-20-2009, 10:04 AM
Mogens Kjaer
Bug with cron ?
MOKRANI Rachid wrote:
> Hi,
>
> The following script works fine on all worksation when it's start manually or if I run it line by line manually.
>
> If I would like to run it on crontab, the following line
> "/usr/bin/yum -y install VMware-Player-2.5.1-126130.x86_64"
> not install the new release of vmplayer with no errors.
Is the last statement translated from French or the actual
error message?
From: MOKRANI Rachid <Rachid.MOKRANI@ifp.fr>
> The following script works fine on all worksation when it's start manually or if
> I run it line by line manually.
>
> If I would like to run it on crontab, the following line
> "/usr/bin/yum -y install VMware-Player-2.5.1-126130.x86_64"
> not install the new release of vmplayer with no errors.
and it worked fine...
Are you sure the script is executable by the crontab user?
Try the redirects like in my example to see what is going on
JD
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
03-20-2009, 10:17 AM
"MOKRANI Rachid"
Bug with cron ?
My pb seem to be with vmplayer rpm.
http://communities.vmware.com/thread/180047
-----Message d'origine-----
De : centos-bounces@centos.org [mailto:centos-bounces@centos.org] De la part de Mogens Kjaer
Envoyé : vendredi 20 mars 2009 12:04
À : CentOS mailing list
Objet : Re: [CentOS] Bug with cron ?
MOKRANI Rachid wrote:
> Hi,
>
> The following script works fine on all worksation when it's start manually or if I run it line by line manually.
>
> If I would like to run it on crontab, the following line
> "/usr/bin/yum -y install VMware-Player-2.5.1-126130.x86_64"
> not install the new release of vmplayer with no errors.
Is the last statement translated from French or the actual
error message?
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
__________________________
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
03-20-2009, 10:32 AM
"MOKRANI Rachid"
Bug with cron ?
Hi,
The pb is with the vmplayer rpm package with cron. I can't install it if we don't have a tty.
The following is the log file when start the script by cron.
################################################## #################################################
--> Package VMware-Player.x86_64 0:2.5.1-126130 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Installing:
VMware-Player x86_64 2.5.1-126130 commun_ 59 M
Total download size: 59 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: VMware-Player######################### [1/1]/var/tmp/rpm-tmp.26764: line 6: /dev/tty: No such device or address
-----Message d'origine-----
De : centos-bounces@centos.org [mailto:centos-bounces@centos.org] De la part de MOKRANI Rachid
Envoyé : vendredi 20 mars 2009 12:18
À : CentOS mailing list
Objet : Re: [CentOS] Bug with cron ?
My pb seem to be with vmplayer rpm.
http://communities.vmware.com/thread/180047
__________________________
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
__________________________
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos