07-22-2013
Are the scripts abc.sh and bcd.sh are in the current directory where you are running your original script
And also do they have executable permissions? If not give them appropriate executable permission.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
test:/oracle/home
$ ex_im1.sh
ksh: exp_imp1.sh: not found
$echo $SHELL
/bin/ksh
ex_im1.sh has rwxr--r-- permissions
thanks (3 Replies)
Discussion started by: dreams5617
3 Replies
2. Shell Programming and Scripting
Hello ;
I have a script myscript.sh. If I type at prompt
myscript.sh
I will receive
ksh: myscript.sh: not found
but if I type
./myscript.sh
it works .
What should I do to be able to run myscript just typing
myscript.sh
Many thanks before. (1 Reply)
Discussion started by: big123456
1 Replies
3. Shell Programming and Scripting
Hi,
I need to run an executable with a different name. say there is 1 executable but 100 different instances running ..all with unique names .how do i achieve it since i need to check that i do not bring up more than 1 instance with the same name. for eg hello.out is the executable ..I want to... (0 Replies)
Discussion started by: sujay
0 Replies
4. UNIX for Dummies Questions & Answers
Hi All.
I created a cronjob entry and for some reason it is not executing. The script that it is suppose to call sends me an email when it is done. When I run the job manually it executes fine. This how my cron entry looks:
00 14 * * * /home/oracle/scripts/bin/free_space/free_space.sh 2>$1... (5 Replies)
Discussion started by: shaseeb
5 Replies
5. Shell Programming and Scripting
I need to execute a command to run my script several times with varying parameters
perl ex.pl -b 130198 -e 130884 -c plot plot.txt 1_plot.txt
perl ex.pl -b 1345 -e 1308 -c plot plot.txt 2_plot.txt
perl ex.pl -b 1345567 -e 130898 -c plot plot.txt 3_plot.txt
.
.
.
100's of excutions
... (2 Replies)
Discussion started by: Lucky Ali
2 Replies
6. Programming
Hi friends
NO errors, but when I try to execute the program it gets struck.
Can any one find it out.
#include<stdio.h>
#include<sys/types.h>
#include<sys/mman.h>
#include<stdlib.h>
#include<fcntl.h>
#include<sys/stat.h>
#include<unistd.h>
#include<signal.h>
#include<string.h>
... (0 Replies)
Discussion started by: gokult
0 Replies
7. Programming
Hi friends
When I compile thic program by gcc filename, it shows no error.
But after that if I execute the program gets stuck.
Can any one find out.
#include<stdio.h>
#include<sys/types.h>
#include<sys/mman.h>
#include<stdlib.h>
#include<fcntl.h>
#include<sys/stat.h>... (6 Replies)
Discussion started by: gokult
6 Replies
8. Shell Programming and Scripting
Script test
#! /bin/csh -f
echo checking the sset command
if( -e /home/user/project/runtest/testdir/ts ) then
echo ts script present
set cmd = "/home/user/project/runtest/testdir/ts a 1 b 2 c 3"
else
echo script not present
endif
echo $cmd
echo done
script ts
#!/bin/csh -f
set... (1 Reply)
Discussion started by: animesharma
1 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I wasn't sure where to post this so I posted it here. I've used UNIX quite a bit, LINUX not so much. For some reason, my LINUX script will not execute if I type in the script name and press enter. I'm in the directory where the script is.
test.sh
However, when I use ". ./" it... (5 Replies)
Discussion started by: jsanders
5 Replies
10. Shell Programming and Scripting
Hi,
am facing some problem while inserting a record into a script
Please find script below.
`sqlplus -s asdf/asdf123 <<eof!
set feedback off;
set heading off;
set verify off;
insert into... (3 Replies)
Discussion started by: senkerth
3 Replies
LEARN ABOUT MOJAVE
strmode
STRMODE(3) BSD Library Functions Manual STRMODE(3)
NAME
strmode -- convert inode status information into a symbolic string
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <string.h>
void
strmode(int mode, char *bp);
DESCRIPTION
The strmode() function converts a file mode (the type and permission information associated with an inode, see stat(2)) into a symbolic
string which is stored in the location referenced by bp. This stored string is eleven characters in length plus a trailing NUL.
The first character is the inode type, and will be one of the following:
- regular file
b block special
c character special
d directory
l symbolic link
p fifo
s socket
w whiteout
? unknown inode type
The next nine characters encode three sets of permissions, in three characters each. The first three characters are the permissions for the
owner of the file, the second three for the group the file belongs to, and the third for the ``other'', or default, set of users.
Permission checking is done as specifically as possible. If read permission is denied to the owner of a file in the first set of permis-
sions, the owner of the file will not be able to read the file. This is true even if the owner is in the file's group and the group permis-
sions allow reading or the ``other'' permissions allow reading.
If the first character of the three character set is an ``r'', the file is readable for that set of users; if a dash ``-'', it is not read-
able.
If the second character of the three character set is a ``w'', the file is writable for that set of users; if a dash ``-'', it is not
writable.
The third character is the first of the following characters that apply:
S If the character is part of the owner permissions and the file is not executable or the directory is not searchable by the owner, and
the set-user-id bit is set.
S If the character is part of the group permissions and the file is not executable or the directory is not searchable by the group, and
the set-group-id bit is set.
T If the character is part of the other permissions and the file is not executable or the directory is not searchable by others, and the
``sticky'' (S_ISVTX) bit is set.
s If the character is part of the owner permissions and the file is executable or the directory searchable by the owner, and the set-
user-id bit is set.
s If the character is part of the group permissions and the file is executable or the directory searchable by the group, and the set-
group-id bit is set.
t If the character is part of the other permissions and the file is executable or the directory searchable by others, and the ``sticky''
(S_ISVTX) bit is set.
x The file is executable or the directory is searchable.
- None of the above apply.
The last character will always be a space.
SEE ALSO
chmod(1), find(1), stat(2), getmode(3), setmode(3)
HISTORY
The strmode() function first appeared in 4.4BSD.
BSD
July 28, 1994 BSD