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. It's very use full to me ....
Thans a lot..

View Tutorial          By: Raxit at 2011-12-30 03:57:03

2. sir very well subject is to continuted the java s
View Tutorial          By: G.venkata siva naga kumar at 2009-11-06 01:13:02

3. I dont want my client using my application to do a
View Tutorial          By: zaffa at 2011-07-27 06:52:09

4. ya,i changed tht to GSM modem but stil there is a
View Tutorial          By: rajesh at 2008-12-15 01:56:35

5. how doeas peek work in a c++ program
View Tutorial          By: odwa at 2008-02-29 02:44:19

6. thx a lot
View Tutorial          By: lupita at 2013-09-04 18:58:40

7. If I have reliance netconnect connected to my lapt
View Tutorial          By: Shaik Allabakash at 2010-02-09 19:38:10

8. hi could u tell me how to download a file using se
View Tutorial          By: akki at 2013-02-19 05:52:03

9. Hi Sir...
sir i am working on Speech to Tex

View Tutorial          By: Sadaquat at 2012-08-19 07:51:28

10. Nice Intro to start J2Me
View Tutorial          By: Mak at 2009-07-04 10:36:00