[Arsperl-users] Problem from web or cron
Brought to you by:
jeffmurphy
|
From: Brad O'H. <br...@uf...> - 2007-10-18 09:24:00
|
All,
Not sure what I am doing wrong! I have the following code that
retrieves entries when run from the command line, but not from a crontab
entry.
my $c = ars_Login(&CCACHE::SERVER, &CCACHE::USERNAME, &CCACHE::PASSWORD);
my $query = qq/('800006010' = "Problem" OR '800006010' =
"Informational") AND '800000101' = "$date"/;
($qual = ars_LoadQualifier($c, $schema, $query));
# Get Requests
my (%entries = ars_GetListEntry($c, $schema, $qual, 0, 0)) ;
if ( %entries ) {
my (%values, %ticket);
foreach $entry_id (sort keys %entries) {
}
}
else { #nothing returned }
The only thing I could think of was a path difference, however, I set
$ENV{'PATH'} = to the same as the shell path.
Any help is greatly appreciated.
Brad
--
Brad O'Hara E-mail: br...@uf...
IT Expert Voice: (352)392-2061
Computing and Networking Services Suncom: 622-2061
University of Florida Fax: (352)392-9440
|