Comment on Tutorial - Execute system commands in a Java Program By Rajan
Comment Added by : Prats
Comment Added at : 2013-02-02 17:33:40
Comment on Tutorial : Execute system commands in a Java Program By Rajan
FILE:- lpton.pl......
...........................................................
#!/opt/lampp/bin/perl
# Parallel port CGI script
#
# Send HTTP headers
print "Content-type: text/html\n\n";
#print "Content-type: text/html\n\n";
#print "Content-type: text/html\n\n";
# Output web page data
print "Parallel port controlled";
print "<a href=\"/Test/index2.html\">Go back to controlling page</a>";
system('/usr/sbin/test 0xff');
.................................................................
This is a script for executing a c program(test) under /usr/sbin/ directory. This script works absolutely fine when this file lpton.pl is executed through command line. But when i try to execute the same file(lpton.pl) through a web server (lampp) only the print statement is getting displayed on browser but the c program is not getting executed....plzz do help me with it......
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Subscribe to Tutorials
Related Tutorials
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Archived Comments
1. hi its working nice,can u plz help me how to fetch
View Tutorial By: Manju gowda at 2014-02-21 07:23:44
2. Very nice and easy to understand, keep it up !!
View Tutorial By: claudiu at 2010-02-07 06:12:30
3. I HAVE ONE DOUBT.
public class Anim
View Tutorial By: georgy at 2009-10-22 02:46:10
4. Excellent. I want you to publish about memory allo
View Tutorial By: Mohamed firnaz at 2011-12-07 04:54:27
5. Comment: yes i understood too:D:D perfect and brei
View Tutorial By: eman at 2009-04-21 23:57:26
6. Great details you provided here, very straight for
View Tutorial By: Jackie Wong at 2010-02-05 10:52:25
7. How about using stack in microprocessor subj.??? d
View Tutorial By: Private at 2015-08-18 01:43:18
8. Thanks.It helps a lot to me.
View Tutorial By: Sachin at 2013-05-24 19:36:36
9. Very usefull tutorial, but I've got a question:
View Tutorial By: Wolfgang Marcos at 2011-05-16 11:12:19
10. can we do it this procedure by iteration i know th
View Tutorial By: sattar at 2010-05-03 03:00:20