[Anthill] Bourne shell problem

Phil Mocek pmocek-list-anthill at mocek.org
Tue Feb 8 23:53:31 CST 2005


On Tue, Feb 08, 2005 at 11:55:26PM -0500, Eric Minick wrote:
> Anthill [is] just running the commands as the user in question.
> You would either want to configure the Websphere user to use the
> Bourne shell 

Make that ``to use Bash''.  The OP said Bourne Shell wasn't
working for him but bash and Korn were.

On many Unix-like systems, changing a user's login shell is
performed using the usermod command, like this:

    usermod -s /bin/bash username

which would change user ``username'' so that his login shell is
/bin/bash.
    
> or include the path to your bourne shell as the first line of your 
> edit.sh.

To clarify, most shell scripts start out with a line that looks
like one of these:

    #!/bin/sh
    #!/bin/bash
    #!/bin/csh
    #!/bin/ksh
    #!/bin/zsh

Whatever comes after the ``shebang'' (the hash mark and
exclamation point) indicates what command should be used to
interpret the script.  If your script uses features that are
specific to bash, then it really should begin with
``#!/bin/bash''.

-- 
Phil Mocek



More information about the Anthill mailing list