Skip Menu |

This queue is for tickets about the Yahoo-Marketing CPAN distribution.

Report information
The Basics
Id: 35907
Status: open
Priority: 0/
Queue: Yahoo-Marketing

People
Owner: Nobody in particular
Requestors: eford [...] techforless.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: YML file won't load from cronjob
Distribution Name and version: Yahoo::Marketing version 4.04 Perl Version: 5.8.8 Operating system: FreeBSD 6.2-STABLE (i386) I can run my perl Yahoo::Marketing scripts just fine from a command prompt, but when I attempt to run them as a cronjob, I get the following error(an example): YAML Error: Couldn't open yahoo-marketing.yml for input:\n Code: YAML_LOAD_ERR_FILE_INPUT at /usr/local/lib/perl5/site_perl/5.8.8/Yahoo/Marketing/Service.pm line 104 I've tried placing yahoo-marketing.yml in the directory that contains the scripts(which works fine from the shell prompt), and I've also tried placing the YML file in the same directory as listed above. I've tried doing the cronjobe as root, under my account on the system, and as a webuser with limited permissions. I've tried setting the permissions multiple ways to get it to work. the YML file currently has read-write-execute at user level, and read-execute at group and world. My scripts run, so this isn't a showstopper, but it'd be really nice to be able to do this from a cronjob. I don't know if this is a bug or an information request...do I need to place the YML file at a special location for cronjobs to see it? I've tried the directory the scripts are in, '/', and the Perl lib directory. Thanks!
From: jeff [...] zeroclue.com
On Thu May 15 11:13:49 2008, eford wrote: Show quoted text
> I can run my perl Yahoo::Marketing scripts just fine from a command > prompt, but when I attempt to run them as a cronjob, I get the following > error(an example): > YAML Error: Couldn't open yahoo-marketing.yml for input:\n > Code: YAML_LOAD_ERR_FILE_INPUT > at /usr/local/lib/perl5/site_perl/5.8.8/Yahoo/Marketing/Service.pm
line 104 Yahoo::Marketing is looking for the config file in whatever it's working directory is when it's run under cron. Can you specify the full path to the config file in your call to ->parse_config? From the POD: ->parse_config( path => '/path/to/config.yml', section => 'some_section' );
Subject: RE: [rt.cpan.org #35907] YML file won't load from cronjob
Date: Fri, 24 Oct 2008 14:26:06 -0600
To: <bug-Yahoo-Marketing [...] rt.cpan.org>
From: "Evert Ford" <eford [...] techforless.com>
Hehe. I put this bug report in on May 15, 2008. It is now October 24. I tried putting the config.yml file in multiple directories when I was working with this. When I couldn't get it to work as part of a cronjob I quit using a config file and put the access information in the script itself, which worked ;-) Didn't have time to fiddle with it, so I just went with what I knew how to do. Evert Show quoted text
>-----Original Message----- >From: Jeff Lavallee via RT [mailto:bug-Yahoo-Marketing@rt.cpan.org] >Sent: Friday, October 24, 2008 2:13 PM >To: eford@techforless.com >Subject: [rt.cpan.org #35907] YML file won't load from cronjob > ><URL: http://rt.cpan.org/Ticket/Display.html?id=35907 > > >On Thu May 15 11:13:49 2008, eford wrote:
>> I can run my perl Yahoo::Marketing scripts just fine from a command >> prompt, but when I attempt to run them as a cronjob, I get the >> following error(an example): >> YAML Error: Couldn't open yahoo-marketing.yml for input:\n >> Code: YAML_LOAD_ERR_FILE_INPUT >> at /usr/local/lib/perl5/site_perl/5.8.8/Yahoo/Marketing/Service.pm
>line 104 > > >Yahoo::Marketing is looking for the config file in whatever >it's working directory is when it's run under cron. Can you >specify the full path to the config file in your call to >->parse_config? From the POD: > > ->parse_config( path => '/path/to/config.yml', section => >'some_section' ); > > > >
Subject: RE: [rt.cpan.org #35907] YML file won't load from cronjob
Date: Fri, 24 Oct 2008 14:26:06 -0600
To: <bug-Yahoo-Marketing [...] rt.cpan.org>
From: "Evert Ford" <eford [...] techforless.com>
Hehe. I put this bug report in on May 15, 2008. It is now October 24. I tried putting the config.yml file in multiple directories when I was working with this. When I couldn't get it to work as part of a cronjob I quit using a config file and put the access information in the script itself, which worked ;-) Didn't have time to fiddle with it, so I just went with what I knew how to do. Evert Show quoted text
>-----Original Message----- >From: Jeff Lavallee via RT [mailto:bug-Yahoo-Marketing@rt.cpan.org] >Sent: Friday, October 24, 2008 2:13 PM >To: eford@techforless.com >Subject: [rt.cpan.org #35907] YML file won't load from cronjob > ><URL: http://rt.cpan.org/Ticket/Display.html?id=35907 > > >On Thu May 15 11:13:49 2008, eford wrote:
>> I can run my perl Yahoo::Marketing scripts just fine from a command >> prompt, but when I attempt to run them as a cronjob, I get the >> following error(an example): >> YAML Error: Couldn't open yahoo-marketing.yml for input:\n >> Code: YAML_LOAD_ERR_FILE_INPUT >> at /usr/local/lib/perl5/site_perl/5.8.8/Yahoo/Marketing/Service.pm
>line 104 > > >Yahoo::Marketing is looking for the config file in whatever >it's working directory is when it's run under cron. Can you >specify the full path to the config file in your call to >->parse_config? From the POD: > > ->parse_config( path => '/path/to/config.yml', section => >'some_section' ); > > > >