Aug 25, 2001, 4:54 AM
Post #1 of 1
I have written a script to automate all daily activity in our Cognos BI environment. Everything works great, I create a command file with all properly formatted commands to "feed to" a Cognos batch utility program on the NT server. What I thought would be the easy part -- running the batch utility program and passing it the file of commands - has me puzzled at this point. I am using the Perl "system" command to run things. I can't get it to work. I have even resorted to hardcoding paths and names in the program just to see if I can get it to run. If anyone can tell me the stupid mistake I am making (usually is the case) I would really be grateful. Here is how I attempted to run it with hardcoded path/name and it errors out with "The name specified is not recognized as an
using system command
internal or external command, operable program or batch file."
my $status = system( "C:\\program files\\cognos\\cer1\\bin\\ppadmtool.exe < D:\\temp\\command_file.txt" );
BTW - I have also tried running all this from a .bat file. I can run batch file from command line - but not from the Perl program.
Thanks - Bob