I think you are all right.. it was running the script properly from command line as it understood the Autosys command but from Apache server it was not. So I added an additional sourcing of Autosys from my wrapper CGI and it worked. thanks so much for your replies. I am not a perl expert at all.. Just learning.. so couldnt understand things clearly. thanks again for all the helpp.
I have problem with my CGI perl script. Below is the code i have post the table tag closure. Before this table, ofcourse I have the BODY tag still open.
Command line output:# Autosys command @job_run = `autorep -J my_job_name -w`; print "<PRE><FONT SIZE=3>\n"; foreach $job_line (@job_run) { print "'$job_line'"; } print "</FONT></PRE>\n";
the same code, i paste in HTML source, i see the display of this run details. But when I run this code in my frame on HTML page when I open the source and see, this is what I see:<PRE><FONT SIZE=3> Job Name Last +Start Last End ST Run Pri/Xit ________________________________________________________________ _____ +_______________ ____________________ __ _______ ___ my_job_name 02/05/2015 03:54:02 + ----- RU 70730069/1 </FONT></PRE> </CENTER></BODY></HTML>
Please help.<PRE><FONT SIZE=3> </FONT></PRE> </CENTER></BODY></HTML>
In reply to Html not printing my shell command output by mshreya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |