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



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. I need to creat class. Write in class void named r
View Tutorial          By: Aliarth at 2012-11-18 00:03:15

2. it is very useful and in understandable manner
View Tutorial          By: Deepika at 2012-03-26 05:10:15

3. # include <iostream.h>
int main ()
View Tutorial          By: nazarine at 2011-07-06 06:17:10

4. Hi,
how can make a report to display one re

View Tutorial          By: david at 2013-08-30 16:09:23

5. I want to use the same code in c++,
Can a

View Tutorial          By: vijay at 2009-09-26 00:47:02

6. nice material
View Tutorial          By: ravi at 2008-12-24 00:40:12

7. i want to more explanation about serlization
View Tutorial          By: sumathi at 2013-12-22 15:00:20

8. My exchange email account is only partially delete
View Tutorial          By: ali at 2010-12-30 02:38:14

9. In the above example..where you make the GC1 objec
View Tutorial          By: prasad at 2014-12-11 11:12:28

10. how to read a number from a keyboard and write tha
View Tutorial          By: aiswarya at 2015-09-13 03:48:05