20030505 Monday May 05, 2003

Running a process from a servlet Note to self: This may help you in running moblogger from a servlet:

Process p = Runtime.getRuntime().exec("/bin/chmod 700 /path/to/myfile");

I found this nugget on the tomcat-user mailing list - and I'm assuming it can be used to run any command-line process. Posted in Java at May 05 2003, 05:10:11 PM MDT 2 Comments

Comments:

Hi Matt! Just a quick pointer if you haven't seen this article already: http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html I hope you keep blogging about the moblogger, I'm very interested in it and would like to help out if I can. Great work on roller!

Posted by Nobu on May 06, 2003 at 01:25 AM MDT #

Next to the points mentioned in the (good!) article referred to by Nobu you shouldn't forget that not every application server will allow it out-of-the box. SecurityManager#checkExec(String) has a say in this.

Posted by Guus on May 06, 2003 at 02:46 AM MDT #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architecture Consultant specializing in open source frameworks.
« May 2012
SunMonTueWedThuFriSat
  
1
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
23
24
25
26
27
28
29
30
31
  
       
Today

Recent Entries

Tag Cloud