10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am trying to stream lines written into file. When first source is down, I expect the code to swap to second line and run it.
Script below works as usual and it prints out each line of the input file (s.txt):
#!/bin/bash
while read -r line;
do
echo "$line"
done <"$1"
exit 0Output... (12 Replies)
Discussion started by: baris35
12 Replies
2. Red Hat
I have a RHEL 5.7 system with a cifs mount from a Windows 2007 file server that I need to fix the permissions on. Once the share is mounted the permission for the mount are 777. I need to change that to 770 on the top level directory and to 640 on the sub-directory .ssh/. But when I run chmod... (0 Replies)
Discussion started by: westmoreland
0 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I was trying a perl-cgi tutorial and saving the data from online form to a file named (guests.txt). I am using the localhost port 80 for practice.
My page file "guestbook.html" is working as I saw the online form. After filled out the blanks and submit, I was expecting to see the result... (3 Replies)
Discussion started by: yifangt
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Need your help..
I am writing one script in which I am assigning value to one variable but when i am executing it is showing error "0403-006 Execute permission denied"
below is the line of that script :
INPUT_COUNT=wc $GIF_DIR/input/VID_RIMS.DAT | awk '{print $1}'
and access... (2 Replies)
Discussion started by: NirajThakar
2 Replies
5. Shell Programming and Scripting
Hello,
I am have an issues with one of my scripts. I get the following error when I get to the point in the script where I am making the change. The change does take however. the error is "change: xecho: execute permission denied"
Everything was working properly until I start cleaning... (3 Replies)
Discussion started by: simpsonjr
3 Replies
6. OS X (Apple)
Hello,
I am using Tiger 10.4.11
I am trying out the GIMP, so I installed the X11 package from "Optional Installs" on the cd.
Whenever I open X11, I get an error:
xterm: could not exec /dev/null: Permission denied
I have chmodded /dev/null to 777, as well as the /tmp directory.
I deleted... (2 Replies)
Discussion started by: Ricardo-san
2 Replies
7. Shell Programming and Scripting
Hello,
when I try to connect to a remote machine through SSH username@host I am getting the error message
Permission denied (publickey,password,keyboard-interactive).
Can any one tell me what is the problem. the key is added in the remote machines authorized_keys file. (5 Replies)
Discussion started by: deepusunil
5 Replies
8. UNIX for Advanced & Expert Users
Hi People
I am getting this error Couldn't canonicalise: Permission denied. Anyone knows what does this error mean ? It all started when my team members were testing Sftp functions on some directories and they were hitting directory no found errors within their scripts.
So when we enquired... (8 Replies)
Discussion started by: wilsontan
8 Replies
9. Shell Programming and Scripting
When I try to run xterm at a command prompt in solaris 2.5.1, i'm getting a permission denied error. But the directory and user permissions look ok, they are part of a users group and then also root,sys,adm so what gives? Any ideas? Thanks! (1 Reply)
Discussion started by: kymberm
1 Replies
10. UNIX for Advanced & Expert Users
When I do a 'cd /appl' and issue 'ls -al' command, I get the following error for .. directory.
./..: Permission denied
But still I get a listing of other directories under /appl.
Also, if I give 'man' for any command under this /appl folder, I get the following error:
... (3 Replies)
Discussion started by: Deepa
3 Replies
stat.h(3HEAD) Headers stat.h(3HEAD)
NAME
stat.h, stat - data returned by stat system call
SYNOPSIS
#include <sys/types.h>
#include <sys/stat.h>
DESCRIPTION
The system calls stat, lstat and fstat return data in a stat structure, which is defined in <stat.h>.
The constants used in the st_mode field are also defined in this file:
#define S_IFMT /* type of file */
#define S_IAMB /* access mode bits */
#define S_IFIFO /* fifo */
#define S_IFCHR /* character special */
#define S_IFDIR /* directory */
#define S_IFNAM /* XENIX special named file */
#define S_INSEM /* XENIX semaphore subtype of
IFNAM */
#define S_INSHD /* XENIX shared data subtype of
IFNAM */
#define S_IFBLK /* block special */
#define S_IFREG /* regular */
#define S_IFLNK /* symbolic link */
#define S_IFSOCK /* socket */
#define S_IFDOOR /* door */
#define S_ISUID /* set user id on execution */
#define S_ISGID /* set group id on execution */
#define S_ISVTX /* save swapped text even after
use */
#define S_IREAD /* read permission, owner */
#define S_IWRITE /* write permission, owner */
#define S_IEXEC /* execute/search permission,
owner */
#define S_ENFMT /* record locking enforcement
flag */
#define S_IRWXU /* read, write, execute: owner */
#define S_IRUSR /* read permission: owner */
#define S_IWUSR /* write permission: owner */
#define S_IXUSR /* execute permission: owner */
#define S_IRWXG /* read, write, execute: group */
#define S_IRGRP /* read permission: group */
#define S_IWGRP /* write permission: group */
#define S_IXGRP /* execute permission: group */
#define S_IRWXO /* read, write, execute: other */
#define S_IROTH /* read permission: other */
#define S_IWOTH /* write permission: other */
#define S_IXOTH /* execute permission: other */
The following macros are for POSIX conformance (see standards(5)):
#define S_ISBLK(mode) block special file
#define S_ISCHR(mode) character special file
#define S_ISDIR(mode) directory file
#define S_ISFIFO(mode) pipe or fifo file
#define S_ISREG(mode) regular file
#define S_ISSOCK(mode) socket file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
stat(2), types.h(3HEAD), attributes(5), standards(5)
SunOS 5.10 30 Aug 2002 stat.h(3HEAD)