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
LS(1) General Commands Manual LS(1)
NAME
ls - list contents of directory
SYNOPSIS
ls [ -ltasdrucifg ] name ...
DESCRIPTION
For each directory argument, ls lists the contents of the directory; for each file argument, ls repeats its name and any other information
requested. The output is sorted alphabetically by default. When no argument is given, the current directory is listed. When several
arguments are given, the arguments are first sorted appropriately, but file arguments appear before directories and their contents. There
are several options:
-l List in long format, giving mode, number of links, owner, size in bytes, and time of last modification for each file. (See below.)
If the file is a special file the size field will instead contain the major and minor device numbers.
-t Sort by time modified (latest first) instead of by name, as is normal.
-a List all entries; usually `.' and `..' are suppressed.
-s Give size in blocks, including indirect blocks, for each entry.
-d If argument is a directory, list only its name, not its contents (mostly used with -l to get status on directory).
-r Reverse the order of sort to get reverse alphabetic or oldest first as appropriate.
-u Use time of last access instead of last modification for sorting (-t) or printing (-l).
-c Use time of last modification to inode (mode, etc.) instead of last modification to file for sorting (-t) or printing (-l).
-i Print i-number in first column of the report for each file listed.
-f Force each argument to be interpreted as a directory and list the name found in each slot. This option turns off -l, -t, -s, and
-r, and turns on -a; the order is the order in which entries appear in the directory.
-g Give group ID instead of owner ID in long listing.
The mode printed under the -l option contains 11 characters which are interpreted as follows: the first character is
d if the entry is a directory;
b if the entry is a block-type special file;
c if the entry is a character-type special file;
- if the entry is a plain file.
The next 9 characters are interpreted as three sets of three bits each. The first set refers to owner permissions; the next to permissions
to others in the same user-group; and the last to all others. Within each set the three characters indicate permission respectively to
read, to write, or to execute the file as a program. For a directory, `execute' permission is interpreted to mean permission to search the
directory for a specified file. The permissions are indicated as follows:
r if the file is readable;
w if the file is writable;
x if the file is executable;
- if the indicated permission is not granted.
The group-execute permission character is given as s if the file has set-group-ID mode; likewise the user-execute permission character is
given as s if the file has set-user-ID mode.
The last character of the mode (normally `x' or `-') is t if the 1000 bit of the mode is on. See chmod(1) for the meaning of this mode.
When the sizes of the files in a directory are listed, a total count of blocks, including indirect blocks is printed.
FILES
/etc/passwd to get user ID's for `ls -l'.
/etc/group to get group ID's for `ls -g'.
LS(1)