02-14-2005
I have found my answer from someone else but thought some people would like to know so here it is. Make script and call it what ever you like.
#!/usr/bin/sh
find / -type f \( -perm -100 -o -perm -010 -o -perm 001 \) | while read X
do
file "${X}" | grep -q -i "text"
RSLT=${?}
if [[ ${RSLT} -ne 0 ]]
then
file "${X}" | grep -q -i "ELF-64"
RSLT=${?}
if [[ ${RSLT} -eq 0 ]]
then
echo "${X} is 64-bit"
else
echo "${X} is 32-bit"
fi
fi
done
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all,
I was wondering if anyone can tell me how to change 24 bits depth display to 8 bits depth display for Sun Ultra1, running Solaris 8? THANKS in advance. I think that the command is ffbconfig, but it has nothing about depth. (4 Replies)
Discussion started by: larry
4 Replies
2. AIX
Hello there:
I know that exist a procedure to convert an OS using 32bits kernel to 64 bits kernel. But, exist a procedure to convert an OS using 64bits to 32 bits kernel?
Please help me.
Regards. (2 Replies)
Discussion started by: GEIER
2 Replies
3. Post Here to Contact Site Administrators and Moderators
My bits count is increasing and decreasing frequently. I haven't get infractions at present. But my bits count is getting increasing and decreasing frequently. Previously it was not like that. May know the reasons please?
Thanks in Advance. (3 Replies)
Discussion started by: thillai_selvan
3 Replies
4. UNIX for Dummies Questions & Answers
people i have a problem i have a 32 bits sparc processor, and solaris 64 bits processor, i install a oracle data base 64 bits, but my oracle will not run because my processor is from 32 bits this is ok??, i know if i have x86 i cannot install a 64 bits operatin system in a 32 bits processor.
... (0 Replies)
Discussion started by: enkei17
0 Replies
5. What is on Your Mind?
Ten movies have been nominated as best motion picture by the International Press Academy, presentation of the 2012 Satellite Awards will be held on 16th December at Los Angeles, CA.
Place your bits here on one of the below nominated movie of your choice:-
Argo
... (0 Replies)
Discussion started by: Yoda
0 Replies
6. What is on Your Mind?
Hi Friends..
Can anyone explain me the usage of bits....
I am unable to understand .....
I've moved this to a more appropriate forum on the board. Please consider where you are posting. (2 Replies)
Discussion started by: bharat1211
2 Replies
LEARN ABOUT OSX
acl_get_perm_np
ACL_GET_PERM_NP(3) BSD Library Functions Manual ACL_GET_PERM_NP(3)
NAME
acl_get_perm_np -- check if a permission is set in a permission set
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <sys/acl.h>
int
acl_get_perm_np(acl_permset_t permset_d, acl_perm_t perm);
DESCRIPTION
The acl_get_perm_np() function is a non-portable function that checks if a permission is set in a permission set.
RETURN VALUES
If the permission in perm is set in the permission set permset_d, a value of 1 is returned, otherwise a value of 0 is returned.
ERRORS
If any of the following conditions occur, the acl_get_perm_np() function will return a value of -1 and set global variable errno to the cor-
responding value:
[EINVAL] Argument perm does not contain a valid ACL permission or argument permset_d is not a valid ACL permset.
SEE ALSO
acl(3), acl_add_perm(3), acl_clear_perms(3), acl_delete_perm(3), acl_get_permset(3), acl_set_permset(3), posix1e(3)
STANDARDS
POSIX.1e is described in IEEE POSIX.1e draft 17.
AUTHORS
Michael Smith
Chris D. Faulhaber
BSD
April 10, 2001 BSD