mshreya has asked for the wisdom of the Perl Monks concerning the following question:
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>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Html not printing my shell command output
by Happy-the-monk (Canon) on Feb 05, 2015 at 09:54 UTC | |
by mshreya (Initiate) on Feb 05, 2015 at 10:18 UTC | |
by marto (Cardinal) on Feb 05, 2015 at 10:34 UTC | |
by Happy-the-monk (Canon) on Feb 05, 2015 at 10:35 UTC | |
by mshreya (Initiate) on Feb 05, 2015 at 10:37 UTC | |
|
Re: Html not printing my shell command output
by i5513 (Pilgrim) on Feb 05, 2015 at 09:54 UTC | |
|
Re: Html not printing my shell command output
by mshreya (Initiate) on Feb 05, 2015 at 10:41 UTC |