wat is execute permission denied???


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users wat is execute permission denied???
# 1  
Old 10-11-2006
wat is execute permission denied???

hi,
i have a problem and is needed by next week.
when i need to run a program at the specified time using the crontab, after that the program which will send a messege to the screen using the say command, which will show "Hello"

but there is an error when i run it, in the mail it show that

[
[unexpected end of line. this entry has been ignored.]
]

my crontab code is like tis

[
45 13 * * * /usr/testest > /usr/test.txt 2>&1
]

and my code for [testtest] is

[
#!bin/sh
DISPLAY=localhost:0.0 export DISPLAY

say HELLO
]

in the [test.txt] it shows
[
/usr/testtest : say : execute permission denied
]

does anyone know how to solve the [execute permission denied] problem?

Thank You for any advices.

Last edited by ckng; 10-11-2006 at 05:14 AM.. Reason: improvement
# 2  
Old 10-11-2006
Execute permission denied means exactly that. Check if the /usr/testtest file has execute permission for user whose crontab it is being executed from. If not, then add execute permissions using chmod. Thats all.
# 3  
Old 10-11-2006
hi all,

i have change the /usr/testtest to like this [-rwxrwxrwx] but it still have the same problem.

is there anythin i need to do so that the problem will not appear?
# 4  
Old 10-11-2006
can u validate the entry in the crontab file....
also check the permissions of say command.


samsam
# 5  
Old 10-11-2006
Is this really what the start of your script looks like?
Code:
#!bin/sh

# 6  
Old 10-11-2006
its a typo error

#!/bin/sh
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Swinstall and rsync - execute permission denied

Hello, I have managed to install rsync using swinstall and also as far as I can tell the dependancies we didn't have. However when trying to execute the binary I get the following error :- />rsync sh: rsync: Execute permission denied. />which rsync /usr/local/bin/rsync... (10 Replies)
Discussion started by: YogaBija
10 Replies

2. UNIX for Dummies Questions & Answers

Permission denied

when i run echo "User” > /dev/tty5 why do i get permission denied? :confused: (2 Replies)
Discussion started by: chinababy
2 Replies

3. Linux

Permission denied

I am using korn shell When I type in Telnet on cmd line, I get message "cannot execute" How can I get permission to execute command ? In which dir is telnet located ? I looked in /usr/bin dir. but its not there Thanks (1 Reply)
Discussion started by: paramshamnani
1 Replies

4. UNIX for Dummies Questions & Answers

Getting Error 0403-006 Execute permission denied.

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

Permission denied

I created a user so that when he logs in he will be directed to a menu /etc/passwd user1:x:115:1:Support -SysAd:/export/home/user1:/export/home/suppotrmenu/script.sh However when I logged in remotely from another server by ssh user1@1.1.1.1 , it saysexport/home/suppotrmenu/script.sh:... (4 Replies)
Discussion started by: lhareigh890
4 Replies

6. Red Hat

Permission denied

Hi guys im new to this db i have a small prob while installing websphereportal6.1i think i was installed succesfully but the error im getting is while starting server. check this out # ./serverStatus.sh -all Error loading: /usr/wps61/AppServer/java/jre/bin/classic/libjvm.so: cannot... (1 Reply)
Discussion started by: varma917989
1 Replies

7. Shell Programming and Scripting

Change: xecho: execute permission denied error

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

8. AIX

rm: execute permission denied in AIX

Hello All, We have an existing ssh set-up between 2 Unix servers ( Server A and Server B). Recently, we've had a problem where we cannot delete files (via app engine and even manually, after connecting thru ssh) on Server B. We manage Server A but Server B is handled by a different group, as a... (1 Reply)
Discussion started by: chipahoys
1 Replies

9. UNIX for Dummies Questions & Answers

Why do I keep getting .:Permission denied?

I'll start off by saying that I know very little about Unix - however, I do know that I have a .profile file in my home directory, and that I should be able to invoke it by typing . profile. However, when I do this for ANY .filename, I get ".: Permission denied". I'm pretty sure that there is... (12 Replies)
Discussion started by: bbersani
12 Replies

10. AIX

0403-006 Execute permission denied.

Hi i am running the below script in vio server, i changed to aix mode..then #./script1 </code> ##Set today Date as file name. vardate= date +"%m%d%y%H%M%S" varhost= hostname filename= "$varhost_$vardate" echo $filename </code> the output is ....... </code> # ./mount_test ... (6 Replies)
Discussion started by: honeym210
6 Replies
Login or Register to Ask a Question