Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsDiscussion Forum → "Bad interpreter"
"Bad interpreter"
2007-02-16, 9:18 AM #1
I have found that I can not run any scripts from my /media/hda3 mount point (which points to a partition on the root drive). I've got a very simple script:

Code:
#!/bin/bash

echo "hi!";


My Kubuntu installation is on / (of course), and, when I try to run the script (which is 755), I get:

Code:
-bash: ./test.sh: /bin/bash: bad interpreter: Permission denied


:confused:
the idiot is the person who follows the idiot and your not following me your insulting me your following the path of a idiot so that makes you the idiot - LC Tusken
2007-02-16, 9:21 AM #2
Running "sh test.sh" worked. Why?

(Oh, durrr...I had the mount point as noexec in fstab)
the idiot is the person who follows the idiot and your not following me your insulting me your following the path of a idiot so that makes you the idiot - LC Tusken
2007-02-16, 11:09 AM #3
Mystery solved. Also for the HLDS.
2007-02-16, 11:18 AM #4
Code:
using (System.Forum forum=System.Forum.GetForum("Discussion Forum"))
{
	while (true)
		forum.Thread[_current].PostReply("Wolfy fails at life!");
}
Code to the left of him, code to the right of him, code in front of him compil'd and thundered. Programm'd at with shot and $SHELL. Boldly he typed and well. Into the jaws of C. Into the mouth of PERL. Debug'd the 0x258.
2007-02-16, 11:19 AM #5
that is bad code JediGandalf.
Detty. Professional Expert.
Flickr Twitter
2007-02-16, 11:24 AM #6
:(

But it works!
Code to the left of him, code to the right of him, code in front of him compil'd and thundered. Programm'd at with shot and $SHELL. Boldly he typed and well. Into the jaws of C. Into the mouth of PERL. Debug'd the 0x258.
2007-02-16, 11:29 AM #7
Cannot is one word.
"it is time to get a credit card to complete my financial independance" — Tibby, Aug. 2009
2007-02-16, 12:00 PM #8
Originally posted by Dictionary.com:
can·not /ˈkænɒt, kæˈnɒt, kə-/ Pronunciation Key - Show Spelled Pronunciation[kan-ot, ka-not, kuh-] Pronunciation Key - Show IPA Pronunciation
–verb
1. a form of ·can not.
—Idiom
2. cannot but, have no alternative but to: We cannot but choose otherwise.
[Origin: 1350–1400; ME]

—Usage note Cannot is sometimes also spelled can not. The one-word spelling is by far the more common: Interest rates simply cannot continue at their present level. The contraction can't is most common in speech and informal writing. See also can1.


either one can be used. :P
My girlfriend paid a lot of money for that tv; I want to watch ALL OF IT. - JM
2007-02-16, 12:16 PM #9
Originally posted by AskOxford.com:
Both cannot and can not are acceptable spellings, but the first is much more usual. You would use can not when the 'not' forms part of another construction such as 'not only'


Note the last sentence.
"it is time to get a credit card to complete my financial independance" — Tibby, Aug. 2009
2007-02-16, 8:58 PM #10
Code:
use Forum::Simple;
my $forum = Forum::Simple->new ( "Discussion Forum" );
$forum->post_reply ( $forum->current_thread, "Wolfy fails at life, but slightly less so than gbk" );
And when the moment is right, I'm gonna fly a kite.
2007-02-16, 9:06 PM #11
Code ownage, provided by your local, neighborhood GBK.
"If you watch television news, you will know less about the world than if you just drink gin straight out of the bottle."
--Garrison Keillor
2007-02-17, 5:34 AM #12
You're creating a new forum object and then posting a reply to the current thread? That makes no sense.
Detty. Professional Expert.
Flickr Twitter
2007-02-17, 7:01 AM #13
Originally posted by Detty:
You're creating a new forum object and then posting a reply to the current thread? That makes no sense.

Of course it doesn't make sense, its perl.


*sigh*
Code:
use Forum::Simple;
my $forum = Forum::Simple::Connection->new ( "Discussion Forum" );
$forum->post_reply ( $forum->current_thread, "Detty complains too much" );
And when the moment is right, I'm gonna fly a kite.
2007-02-17, 7:24 AM #14
don't you sigh at me you little troublemaker!
Detty. Professional Expert.
Flickr Twitter
2007-02-17, 7:41 AM #15
Code:
use Forum::Admin;
my $forum = Forum::Admin->connect();
$forum->ban_user ( "Detty" );


:P
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!