DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 6th November 2010
guitarscn guitarscn is offline
Package Pilot
 
Join Date: Oct 2008
Posts: 166
Thanked 1 Time in 1 Post
Default Bash script cannot execute - Is a directory

Whenever I execute a bash script, I get this error:

Code:
$ ./script.sh  
hello world
./script.sh[3]: /home/guitarscn: cannot execute - Is a directory
Here is the script:
Code:
#!/bin/ksh
echo "hello world"
Why is this?
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] How to make 2 separate arguments in 1 bash script? guitarscn Programming 1 31st August 2010 09:12 PM
Writing a simple script to edit text files and execute commands guitarscn Programming 11 24th August 2010 09:21 PM
strange "~" directory in home directory gosha OpenBSD General 5 23rd February 2009 06:12 PM
execute commands from xinitrc rex FreeBSD General 3 22nd October 2008 10:24 PM
Cron won't execute a perl script ivanatora FreeBSD General 4 17th August 2008 07:53 AM


All times are GMT. The time now is 08:29 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick