Skip navigation.
Home
The QNX Community Portal

View topic - setting File attributes in QNX 3.x & QNX 2.x

setting File attributes in QNX 3.x & QNX 2.x

For the old QNX2 and QNX4 RTOS

setting File attributes in QNX 3.x & QNX 2.x

Postby bboshra » Sun Nov 30, 2003 11:16 am

how to set and check File attributes ?

i need to change a file attribute to an excutable attribute. i'm wrinting a shell script with ed (text editore) but don't know how to change the attribute of the file thus the operating system can detect that it is an excutable script. ?!

can somebody help me ?!
bboshra
New Member
 
Posts: 4
Joined: Tue Nov 18, 2003 10:56 am

Postby thegman » Sun Nov 30, 2003 4:50 pm

'chmod +x myfile.sh' will make your file executable.
thegman
Senior Member
 
Posts: 439
Joined: Sun Jun 15, 2003 8:10 pm

Postby MSchneider » Mon Dec 01, 2003 12:57 pm

Or for Qnx2:
chattr myfile.sh a=+e

Use a '?' to get command options:
chattr ?
MSchneider
Active Member
 
Posts: 27
Joined: Wed May 28, 2003 6:19 pm


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 5 guests