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
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 all
Can you please tell ,how to recei
View Tutorial By: Nanthini at 2011-09-07 16:48:04
2. This is a great article that deals with the evolut
View Tutorial By: JPS SASTRY at 2009-02-11 21:29:56
3. BEST COMMENT EVER:
"Reading the above
View Tutorial By: Mr.X at 2013-10-02 16:31:42
4. any one can send serial port communication using n
View Tutorial By: prakash at 2013-07-01 15:44:48
5. Nice code easily understand the code and useful
View Tutorial By: satish at 2010-01-22 06:30:22
6. The last output is not :John Doe's current balance
View Tutorial By: Santosh at 2010-06-01 22:54:21
7. Sencillo y directo. No se podÃa explic
View Tutorial By: Eligio at 2013-09-03 05:26:35
8. Thank You So Much ^,^
I get rid of that err
View Tutorial By: moji junk at 2009-02-24 07:48:19
9. Thanks Friend it was very helpfull.
View Tutorial By: UMAR FAROOQ at 2015-03-01 07:46:43
10. FINALLY! A place that gives complete examples (wi
View Tutorial By: bminton at 2013-03-19 00:15:55