I am trying to run a script from my workflow . While runnign the workflow - i am erroring out at this particular script such that the workflow is noteven invoking this script - what am i doing wrong - the log file is not even being created. I am runnign teamsite 6.1 on windows 2003 and oracle database .
Thanks in advance
kish
The starting of the script is
#!../../iw-perl/bin/iwperl
BEGIN{
$ENV{ 'PATH' } = 'C:\oracle\ora81\BIN';
}
use DBI;
use DBD:

DBC;
use strict;
use TeamSite::WFtask;
use TeamSite::WFworkflow;
use TeamSite::Config;
my $taskId = $ARGV[1];
my $task = TeamSite::WFtask->new($taskId);
my $debug = 1; # Set to 0 to turn debugging off; 1 to turn debugging on
my $iwhome = TeamSite::Config::iwgethome();
chomp( my $hostname = `C:\\WINDOWS\\system32\\hostname.exe` );
open( HOG, "> C:\\Temp\\teamsiteTemp\\partner_center\\DBsync.log" )
or die ("Can't open logfile: $@.\n");
print HOG "\$hostname=$hostname\n";
print HOG "\$iwhome=" . $iwhome . "\n";
close HOG;
eval { main(
@ARGV ); };
if( $@ ) {
debug( "An error was detected during the execution of this task:\n", $@ );
$task->CallBack( 0, "An error was detected: $@." );
} else {
$task->CallBack( 1, "Metadata synchronized successfully." );
}
exit;