Execute permission for shell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Execute permission for shell script
# 8  
Old 04-04-2014
Execute permission for shell script

Hi Vbe,
sorry for i have not given all details. please find the below details.

We dont know the OS: HP-UX
We dont know what the calling script if for : weekly_us_push_rpts_tst.sh
We dont know what the called script does.. : vacation_quota_summary_detail.sh
We dont know what shell is used: k shell
In main script 'weekly_us_push_rpts_tst.sh' is runing based in two input files(.dat).
1.once file is there in appropriate location then i am calling oracle data base and using sqlloader loading the data into temp_tables
2.After loading data into the temp_tables, i am calling vacation_quota_summary_detail.sh script within main script to generate some report and send to requested users.
This actually the functionality of may script.
we know only the message you get:
# 9  
Old 04-04-2014
have you tried separately to execute both programs?
who are you when running the first , second script? yes it may be important:
For I don't see any other user except oracle or a xxxdba be able to execute oracle stuff unless you have an sql script with user/passwd in it somewhere and if thats the case THEN it should never be read permission for others…

HPUX ksh is a very good ksh88 in the way it will not forgive any syntax error or undefined variable use
Since you will not show us your script, we only know that the line 275 is generating the error if you can trust that…
we still don't know if both script are together or not, if the second is in a directory with perms you gave above, then yes that script is inaccessible now…
I suggest you modify the first script by adding extra read statement and echo the Variables and all required stuff the script needs specially before line 275 then again at line 276 put a read and display all requisites…
use ksh -x
# 10  
Old 04-04-2014
ok, let me try this way.

Thanks for your valuable suggestions.

Regards,
Krupa
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Allow user without dir write permission to execute a script that creates files

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

2. Debian

Execute permission problem

Hello, I need to install a program from a DVD. It uses a sh script called setup. root@ragnok: head -2 /media/cdrom0/setup #!/bin/sh root@ragnok: ls -l /media/cdrom0/setup -r-xr-xr-x 1 root root 4688 Nov 8 08:38 /media/cdrom0/setup root@ragnok: /media/cdrom0/setup bash:... (2 Replies)
Discussion started by: snorkack59
2 Replies

3. Solaris

Script running even after execute permission removed.

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

perl script to check read/write/execute permission for 'others'

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. Shell Programming and Scripting

shell script and Permission denied

Have the following in a .sh file. printf "Installing ... \ r" cd $ ORG_DIR / a_a . / configure> error.log Make 1> error.log 2> error.log make install> error.log But when I run I get the following. install.sh: line 270:. / configure: Permission denied make: *** No rule two make target... (3 Replies)
Discussion started by: Mumie
3 Replies

6. Shell Programming and Scripting

How to use ssh execute other shell script on other host (shell script include nohup)?

i want use ssh on the host01 to execute autoexec.sh on the host02 like following : host01> ssh host02 autoexec.sh autoexec.sh include nohup command like follwing : nohup /home/jack/deletedata.sh & after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh... (1 Reply)
Discussion started by: orablue
1 Replies

7. Shell Programming and Scripting

How to execute a script without giving x permission to the file?

How to execute a script with out giving x permission to the file? (7 Replies)
Discussion started by: praveen_b744
7 Replies

8. UNIX for Advanced & Expert Users

Script without read permission but execute the script

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. Shell Programming and Scripting

Only Execute Permission for Others...

This might be very silly question but i dont know y is it so... i Have script I have Given the permissions in the following manner... -rwxrwx--x 1 root system 3 Jun 08 15:46 temp I want no one to see what is present in that but should be able to execute it.. but when... (3 Replies)
Discussion started by: pbsrinivas
3 Replies

10. Shell Programming and Scripting

without execute permission

how can a script run without execute permissions. when i run myscript as : sh a.sh it was working but when i say simple a.sh its not working since it has no x permission.but how about fist case? (1 Reply)
Discussion started by: Raom
1 Replies
Login or Register to Ask a Question