dcsimg
Runtime command
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   hamizah_yusoph
Posted On:   Wednesday, January 22, 2003 02:09 AM

How to change mode a file on Linux platform from java program?

Re: Runtime command

Posted By:   kevin_rowe  
Posted On:   Wednesday, January 22, 2003 02:58 AM

Straight out of j2sdk documentation files (downloadable from sun)

the class Runtime has an exec(String command) function
also you can use the Process class with it's input and output stream functions to pipe a command to the os.

You will need to set java properties on the file to enable the
program to edit the file permissions i suspect

Good luck

kev.
About | Sitemap | Contact