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



Ask a Question

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. Please some one send me the 6th program developed
View Tutorial          By: mounika at 2008-04-25 02:49:56

2. thanks alot!
View Tutorial          By: gumuruh at 2010-11-06 11:27:18

3. Thanks for the information.
View Tutorial          By: Appala Naidu at 2012-02-10 09:11:29

4. Hi Ramlak,

I tried to use the datab

View Tutorial          By: Braj at 2009-02-07 03:31:13

5. it is unfair to leave this portal without thanking
View Tutorial          By: anil kumar at 2009-12-30 23:40:25

6. The DirSync sync intervals can be changed.

View Tutorial          By: Nitin at 2012-12-22 16:20:38

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

8. Hi.

Mi question is more simple. I w

View Tutorial          By: David at 2010-10-03 04:59:09

9. Good piece of information explained wonderfully. !
View Tutorial          By: Juzar at 2009-07-23 00:24:40

10. NICE EXPLANATION >>>THANK UUUUUU
View Tutorial          By: PraVeen at 2012-07-05 10:12:25