[Anthill] Bourne shell problem

Qazi, Karim kqazi at edmunds.com
Wed Feb 9 13:01:19 CST 2005


Actually the Executor class in (org.apache.commons.execute) is picking
up the default shell the user is executing as you stated.  However this
executor is generating the following command line string 'sh edit.sh
...' The 'sh' at the beginning is overriding the !#/bin/bash that is at
the beginning of the edit.sh shell script.  I can't change the user that
weblogic is running under so I actually had to write a custom adapter to
remove 'sh' from the command line string if it is present in a Unix
environment.  This fixed the problem.

I am also experiencing another issue.  I think this might be an ant
issue however.  I have to put $ANT_HOME/lib as the first entry in my
class path or else I get ant instantation exceptions. See this article:

http://forum.java.sun.com/thread.jspa?tstart=60&forumID=7&threadID=48592
4&trange=15


Is there a way to actually have anthill delete everything under the
project directory after the build has finished?



-----Original Message-----
From: anthill-bounces at lists.urbancode.com
[mailto:anthill-bounces at lists.urbancode.com] On Behalf Of Eric Minick
Sent: Tuesday, February 08, 2005 8:55 PM
To: Anthill user list
Subject: Re: [Anthill] Bourne shell problem

Karim,

Anthill will is just running the commands as the user in question. You 
would either want to configure the Websphere user to use the Bourne 
shell or include the path to your bourne shell as the first line of your

edit.sh.

How are your other issues coming along?

Regards,

Eric

Qazi, Karim wrote:

> I am experiencing a problem with the ProfileRepositoryAdapter. The 
> problem is happening when calling the "edit.sh" program from this 
> adapter. This class ProfileRepositoryAdapter is using a apache commons

> project (org.apache.commons.execute) that I can't seem to find any 
> information on ? The problem is when executing within weblogic the 
> user that starts up weblogic runs under the bourne shell and this 
> "edit.sh" is having problems running under "sh". When I run under bash

> or ksh it works fine??
>
> Is their a way using this org.apache.commons.execute API to force the 
> shell being used?
>
> Karim Qazi
>
> Sr. Java Developer
>
> Edmunds.com
>
> office 310.309.6330
>
> cell 562.208.5335
>
> kqazi at edmunds.com <mailto:kqazi at edmunds.com>
>
>-----------------------------------------------------------------------
-
>
>_______________________________________________
>Anthill mailing list
>Anthill at lists.urbancode.com
>http://lists.urbancode.com/mailman/listinfo/anthill
>  
>

_______________________________________________
Anthill mailing list
Anthill at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill



More information about the Anthill mailing list