Perl script runs == but not under a run process
We suddenly are getting an error never seen before.. this is a long standing peice of code that suddenly for some strange reason started failing. Run process /folder/file.pl xx yy Perl script runs fine, however the system ARS 7.1 does not appear to run it anymore. we added to the filter a command line of date before.txt AND date after.txt before and after dot txt show up.. so we know the filter should have executed the perl script. The perl script does an import into the system a .xls file into the arssystem Remember the perscript works and has not changed. AR Fork is showing the process 1 with exit code of 0x0 AR Fork is showing the process 2 with exit code of 0x89 AR Fork is showing the process 3 with exit code of 0x0 any hints out there.. -- Patrick Zandi ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Where the Answers Are, and have been for 20 years
Re: Perl script runs == but not under a run process
Hi, Try calling the perl script from a shell script. My solaris environment prevents the Remedy systmem from calling the perl scripts directly but everything runs fine via a shell script. Hope that this helps. Nyall On Nov 14, 2013 8:34 PM, patrick zandi remedy...@gmail.com wrote: ** We suddenly are getting an error never seen before.. this is a long standing peice of code that suddenly for some strange reason started failing. Run process /folder/file.pl xx yy Perl script runs fine, however the system ARS 7.1 does not appear to run it anymore. we added to the filter a command line of date before.txt AND date after.txt before and after dot txt show up.. so we know the filter should have executed the perl script. The perl script does an import into the system a .xls file into the arssystem Remember the perscript works and has not changed. AR Fork is showing the process 1 with exit code of 0x0 AR Fork is showing the process 2 with exit code of 0x89 AR Fork is showing the process 3 with exit code of 0x0 any hints out there.. -- Patrick Zandi _ARSlist: Where the Answers Are and have been for 20 years_ ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Where the Answers Are, and have been for 20 years
Re: Perl script runs == but not under a run process
It looks like the perl is suddenly getting an error code of 0x89. Since you state that it runs correctly from the server it sounds like something in the environment that ARS is running under has changed or is missing something that the perl needs. Compare the environment that ARS has with the environment you have when the perl works. You can change your before.txt to be something like set before.txt or env before.txt Either of those should give you the environment that ARS has so you can compare it to when the perl works Fred From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of patrick zandi Sent: Thursday, November 14, 2013 1:34 PM To: arslist@ARSLIST.ORG Subject: Perl script runs == but not under a run process ** We suddenly are getting an error never seen before.. this is a long standing peice of code that suddenly for some strange reason started failing. Run process /folder/file.plhttp://file.pl xx yy Perl script runs fine, however the system ARS 7.1 does not appear to run it anymore. we added to the filter a command line of date before.txt AND date after.txt before and after dot txt show up.. so we know the filter should have executed the perl script. The perl script does an import into the system a .xls file into the arssystem Remember the perscript works and has not changed. AR Fork is showing the process 1 with exit code of 0x0 AR Fork is showing the process 2 with exit code of 0x89 AR Fork is showing the process 3 with exit code of 0x0 any hints out there.. -- Patrick Zandi ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Where the Answers Are, and have been for 20 years
Re: Perl script runs == but not under a run process
We had similar issue. Try unset PERL5LIB; Script ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Where the Answers Are, and have been for 20 years
Re: Perl script runs == but not under a run process
good idea.. should have thought of that.. On Thu, Nov 14, 2013 at 3:05 PM, Grooms, Frederick W frederick.w.gro...@xo.com wrote: ** It looks like the perl is suddenly getting an error code of 0x89. Since you state that it runs correctly from the server it sounds like something in the environment that ARS is running under has changed or is missing something that the perl needs. Compare the environment that ARS has with the environment you have when the perl works. You can change your before.txt to be something like set before.txt or env before.txt Either of those should give you the environment that ARS has so you can compare it to when the perl works Fred *From:* Action Request System discussion list(ARSList) [mailto: arslist@ARSLIST.ORG] *On Behalf Of *patrick zandi *Sent:* Thursday, November 14, 2013 1:34 PM *To:* arslist@ARSLIST.ORG *Subject:* Perl script runs == but not under a run process ** We suddenly are getting an error never seen before.. this is a long standing peice of code that suddenly for some strange reason started failing. Run process /folder/file.pl xx yy Perl script runs fine, however the system ARS 7.1 does not appear to run it anymore. we added to the filter a command line of date before.txt AND date after.txt before and after dot txt show up.. so we know the filter should have executed the perl script. The perl script does an import into the system a .xls file into the arssystem Remember the perscript works and has not changed. AR Fork is showing the process 1 with exit code of 0x0 AR Fork is showing the process 2 with exit code of 0x89 AR Fork is showing the process 3 with exit code of 0x0 any hints out there.. -- Patrick Zandi _ARSlist: Where the Answers Are and have been for 20 years_ -- Patrick Zandi ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Where the Answers Are, and have been for 20 years