Ubuntu Forums

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Ubuntu General Support > General Help
Register Forum Information Ubuntu Community Today's Posts Search

General Help All your general support questions for Ubuntu, Kubuntu, Edubuntu, Xubuntu and Lubuntu.

 
Thread Tools Display Modes
Old September 30th, 2009   #1
SingingBush
5 Cups of Ubuntu
 
Join Date: Sep 2009
Location: England
Beans: 25
Ubuntu 11.04 Natty Narwhal
Command Line: 'Error: This script must be run with bash'

can someone please explain why I'm unable to run this file. The error states I need to use bash but as displayed by 'echo $SHELL' - I am.

root@me-ubuntu:/home/unreal/ut-server# ls -l asu.*
-rwxrwxrwx 1 900 900 1119 2002-04-25 00:24 asu.sh

root@me-ubuntu:/home/unreal/ut-server# ./asu.sh
./asu.sh: Error: This script must be run with bash

root@me-ubuntu:/home/unreal/ut-server# echo $SHELL
/bin/bash
SingingBush is offline   Reply With Quote
Old September 30th, 2009   #2
wojox
breaker of packages
 
wojox's Avatar
 
Join Date: Apr 2009
Location: riding D-Bus
Beans: 8,513
Ubuntu Development Release
Re: Command Line: 'Error: This script must be run with bash'

The top of the script starts with:

PHP Code:
#!/bin/bash 
__________________
"the network is the computer." ~ John Gage
wojox is offline   Reply With Quote
Old September 30th, 2009   #3
ApEkV2
Gee! These Aren't Roasted!
 
ApEkV2's Avatar
 
Join Date: Apr 2009
Location: ~/
Beans: 210
Send a message via Skype™ to ApEkV2
Re: Command Line: 'Error: This script must be run with bash'

Quote:
Originally Posted by wojox View Post
The top of the script starts with:

PHP Code:
#!/bin/bash 
That's a big solved!
ApEkV2 is offline   Reply With Quote
Old September 30th, 2009   #4
CatKiller
Ubuntu addict and loving it
 
CatKiller's Avatar
 
Join Date: Jan 2006
Location: Sunny Southend-on-Sea
Beans: 5,047
Kubuntu 12.04 Precise Pangolin
Re: Command Line: 'Error: This script must be run with bash'

Why not just run
Code:
bash asu.sh
__________________
Quote:
None but ourselves can free our minds
CatKiller is offline   Reply With Quote

Bookmarks


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


All times are GMT -4. The time now is 08:03 AM.


vBulletin ©2000 - 2012, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry