aspose file tools*
The moose likes Linux / UNIX and the fly likes Creating a text file from a web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Creating a text file from a web application" Watch "Creating a text file from a web application" New topic
Author

Creating a text file from a web application

Abebe Belew
Greenhorn

Joined: Jul 21, 2004
Posts: 19
Hi all.

I am trying to create a text file from a struts web app.
The owner of the file I create is root as my web app is owned by root.
How can I change the owner to myself? I tried running a shell script but doesnt seem to work. The OS = Linux red hat.

Thanks in advance for your help
Masoud Kalali
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

Do you tried to execute chown yourself file_name as root user in your script?

if you could post more details like your script ... it will be easier to come with a solution.

Thanks.


Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating a text file from a web application