FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 03-20-2009, 08:51 AM
"MOKRANI Rachid"
 
Default Bug with cron ?

It's only a prompt.


-----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 ?

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 on

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
 
Old 03-20-2009, 09:09 AM
John Doe
 
Default 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
 
Old 03-20-2009, 09:52 AM
"MOKRANI Rachid"
 
Default 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.



#!/bin/bash

SHELL=/bin/bash
export SHELL

/etc/init.d/vmware stop

/usr/bin/yum -y remove VMwarePlayer.x86_64
/usr/bin/yum -y remove VMware-Player.x86_64

/usr/bin/yum -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
##############################################







-----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
 
Old 03-20-2009, 10:04 AM
Mogens Kjaer
 
Default 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?

Anything in /var/log/cron ?

Mogens

--
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Mobile: +45 22 12 53 25
Email: mk@crc.dk Homepage: http://www.crc.dk
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 03-20-2009, 10:16 AM
John Doe
 
Default Bug with cron ?

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.

Just tested the following:

*/5 * * * * yum -y install gnome-nettool >> /tmp/crontest 2>&1

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
 
Old 03-20-2009, 10:17 AM
"MOKRANI Rachid"
 
Default 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?

Anything in /var/log/cron ?

Mogens

--
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Mobile: +45 22 12 53 25
Email: mk@crc.dk Homepage: http://www.crc.dk
_______________________________________________
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
 
Old 03-20-2009, 10:32 AM
"MOKRANI Rachid"
 
Default 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.

The message that :

Installed: VMware-Player.x86_64 0:2.5.1-126130
Complete!

is not true. (vmplayer never install via 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

Transaction Summary
================================================== ===========================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

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

Unable to look at what's on dbus

Installed: VMware-Player.x86_64 0:2.5.1-126130
Complete!



-----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
 

Thread Tools




All times are GMT. The time now is 10:52 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org