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



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

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions 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

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Sorry about this. I cannot run this program becaus
View Tutorial          By: TanSW at 2008-04-28 20:14:20

2. sir, could you please tell me about minimum and ma
View Tutorial          By: priya dwivedi at 2012-01-04 15:01:03

3. nativeFinalize: Error closing Handle 6
and

View Tutorial          By: yash at 2008-05-16 17:43:42

4. Great guide. Missed the lecture, and this summed e
View Tutorial          By: Anonymous at 2008-12-21 19:36:19

5. this code is running successfully
View Tutorial          By: Amit Agarwal at 2013-03-08 10:56:39

6. If i run this program----



View Tutorial          By: pratham at 2010-09-22 10:10:11

7. my question is the same of sajjad.what about (!iss
View Tutorial          By: hossain at 2012-04-26 04:28:56

8. Thankx, the information was of great use, I apprec
View Tutorial          By: sachin at 2008-12-13 03:37:11

9. very good for programing
View Tutorial          By: kiran at 2007-12-06 00:39:47

10. A precise one. This is how I would like to see exa
View Tutorial          By: Guna at 2010-10-14 03:24:34