10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am not able to figure out what is the problem with calling a shell script within a shell script.
i have given all the permissions to both schell scripts.
but when i am seeing the log file error is coming like
weekly_us_push_rpts_tst.sh: ./vacation_quota_summary_detail.sh: Execute... (9 Replies)
Discussion started by: krupasindhu18
9 Replies
2. UNIX for Advanced & Expert Users
In our project we have several unix scripts that trigger different processes. These scripts write logs to a particular folder 'sesslogs', create output data files in a separate directory called 'datafiles' etc. Usually L1 support team re-run these scripts . We donot want L1 support team to have... (14 Replies)
Discussion started by: waavman
14 Replies
3. Solaris
Hi All,
I'm new to solaris and this site but the advices in this site have helped me a lot.
Today i am facing a new issue.
We have a script for BMCDashboard and this script is not supposed to run evrytime the server is booted so we disabled the services and removed the execute... (7 Replies)
Discussion started by: Rockyc3400
7 Replies
4. Shell Programming and Scripting
I want to check access rights permissions not for 'user', not for 'group', but for 'others'.
I want to do it by system command in which i want to use 'ls -l' and 'awk' command.
I have written the following program :
#!/usr/bin/local/perl
#include <stdlib.h>
system ("ls -l | awk... (1 Reply)
Discussion started by: shubhamsachdeva
1 Replies
5. UNIX for Dummies Questions & Answers
I am other user who want to execute a file that its permission is -rw-rw-r--
how do I execute that file. (2 Replies)
Discussion started by: thsecmaniac
2 Replies
6. Shell Programming and Scripting
Here is my script.
1 echo -n "Enter file name : "
2 read file
3 chmod 777 $file
4 && W="write = yes" || W="Write = no"
5 chmod 777 $file
6 && X="Execute = yes" || X="Execute = No"
7 chmod 777 $file
8 && R="Read = yes" || R="Read = No"
... (0 Replies)
Discussion started by: qral_hdr
0 Replies
7. Shell Programming and Scripting
Hi Gurus,
I am new to scripting and needs your help in expect script used for telnet. I wrote a simple script as
#!/usr/bin/expect-5.43 -f
spawn telnet localhost 2233
expect "password:"
send "secret\r"
send "i data.cnbc.com\r"
send "exit\r"
expect eof
When I am trying to execute... (2 Replies)
Discussion started by: niks_yv
2 Replies
8. UNIX for Advanced & Expert Users
I have a script, except me no one can read the script but they can execute the script. Is it possible? (14 Replies)
Discussion started by: kingganesh04
14 Replies
9. UNIX for Dummies Questions & Answers
I'm trying to give everyone execute privileges on one of my small scripts. BUT, I don't want them to be able to view the file, just execute it.
As USER1, I have:
/usrhome/ncora/script_test CDS> $ls -la
drwxrw-rw- 2 ncora ncd 96 Jan 13 15:58 .
drwxrwxrwx 7 ncora ncd ... (10 Replies)
Discussion started by: FredSmith
10 Replies
10. UNIX for Dummies Questions & Answers
I am logged in as root and am trying to execute a file called x_cleanup_equdata but keep getting the message
ksh: x_cleanup_equdataNEW: 0403-006 Execute permission denied.
I did FTP this file from another server using GET, would this make the difference?
I tried chmod 666 but still no luck. ... (2 Replies)
Discussion started by: markbeeson
2 Replies
CHMOD(1) General Commands Manual CHMOD(1)
NAME
chmod - change mode
SYNOPSIS
chmod mode file ...
DESCRIPTION
The mode of each named file is changed according to mode, which may be absolute or symbolic. An absolute mode is an octal number con-
structed from the OR of the following modes:
4000 set user ID on execution
2000 set group ID on execution
1000 sticky bit, see chmod(2)
0400 read by owner
0200 write by owner
0100 execute (search in directory) by owner
0070 read, write, execute (search) by group
0007 read, write, execute (search) by others
A symbolic mode has the form:
[who] op permission [op permission] ...
The who part is a combination of the letters u (for user's permissions), g (group) and o (other). The letter a stands for ugo. If who is
omitted, the default is a but the setting of the file creation mask (see umask(2)) is taken into account.
Op can be + to add permission to the file's mode, - to take away permission and = to assign permission absolutely (all other bits will be
reset).
Permission is any combination of the letters r (read), w (write), x (execute), s (set owner or group id) and t (save text - sticky). Let-
ters u, g or o indicate that permission is to be taken from the current mode. Omitting permission is only useful with = to take away all
permissions.
The first example denies write permission to others, the second makes a file executable:
chmod o-w file
chmod +x file
Multiple symbolic modes separated by commas may be given. Operations are performed in the order specified. The letter s is only useful
with u or g.
Only the owner of a file (or the super-user) may change its mode.
SEE ALSO
ls(1), chmod(2), chown (1), stat(2), umask(2)
CHMOD(1)