Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-07

Setting execute bit for a Unix file

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Karoly Balogh (Charlie/SGR
to David Copeland

Hi,

Naaah, better use FpChmod() in BaseUnix unit:

http://www.freepascal.org/docs-html/rtl/baseunix/fpchmod.html

Charlie

David Copeland wrote 18 lines
You could try FpSystem('chmod +x yourfilename'); // assuming the cwd is set Dave. On 07/31/2014 04:18 PM, Juha Manninen wrote: > Hello > > How can I set a file flag (execute) using Pascal code in a Linux system? > > Juha > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email

David Copeland
to Karoly Balogh (Charlie/SGR

I agree, you learn something new every day!

Dave.

Karoly Balogh wrote 17 lines
Hi, Naaah, better use FpChmod() in BaseUnix unit: http://www.freepascal.org/docs-html/rtl/baseunix/fpchmod.html Charlie On Thu, 31 Jul 2014, David Copeland wrote: > You could try FpSystem('chmod +x yourfilename'); // assuming the cwd is set > > Dave. > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email