🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1938

Re: Changing file permissions

#1938
From: John McGrath TeamB
Date: Fri, 13 Jul 2001 11:52
17 lines
1409 bytes
On Thu, 12 Jul 2001 14:38:09 -0400, Peter Parlewicz wrote:

> I would like to set the 'executable' file attribute on an
> existing shell script file from a Java program..
> How (if at all) can I do it?

There is nothing in the Java runtimes that will do this for you, but it 
would be pretty easy to use Runtime exec() to run a "chmod" command.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.15b8ab226a535a7a98a358@forums.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3B4DEE91.C5056560@queryobject.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,e465846366fec29e
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-07-13 04:54:17 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: Changing file permissions
Date: Fri, 13 Jul 2001 07:52:52 -0400
Message-ID: <MPG.15b8ab226a535a7a98a358@forums.borland.com>
References: <3B4DEE91.C5056560@queryobject.com>
X-Newsreader: MicroPlanet Gravity v2.30
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 995025171 209.92.40.60 (13 Jul 2001 04:52:51 -0700)
Lines: 17
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews