Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

/usr/bin/csh -f /usr/bin/which ant

  • 28-10-2005 2:05pm
    #1
    Registered Users, Registered Users 2 Posts: 27,465 ✭✭✭✭


    Help!
    As part of a daily build something is executing "/usr/bin/csh -f /usr/bin/which ant" presumably to find where ant is.
    Trouble is it seems to hang or sit in the background or something
    If I type "jobs" I see nothing, or FG or whatever

    if I check the running processes I can see
    15 8 0 08:47:56 pts/13 0:00 /usr/bin/csh -f /usr/bin/which ant
    18 15 0 08:47:56 pts/13 0:00 tcsh
    8 5 0 08:47:55 pts/13 0:00 /bin/sh <my build script>

    now if I kill pid 18 my code resumes exactly like it used to
    AFAIK nothing has changed but I dont know enough about this crap to be sure (and there are others using the box)
    what exactly does "/usr/bin/csh -f /usr/bin/which ant" do??

    thanks for the help guys, Im totally lost/fed up at this stage.. :mad: :confused:


Comments

  • Registered Users, Registered Users 2 Posts: 6,762 ✭✭✭WizZard


    csh -f spawns a cshell without scanning/using the .cshrc file. It then calls which which reports back the directory where the ant program file is found in.

    That's what it does, as for why it hangs, I've no idea.
    I can only assume that one of those files doens't exist? (ant or /usr/bin/which)

    Or perhaps there is an argument to csh that can make it quit/exit after running a command?


  • Registered Users, Registered Users 2 Posts: 27,465 ✭✭✭✭GreeBo


    Hey, thx for the reply!
    z
    I have discovered that one of the scripts is making a call to "which ant"
    why does that end up looking as
    "/usr/bin/csh -f /usr/bin/which ant"?
    If I simply run which ant in a shell I get back where ant is installed.
    Somehow, this call is spawning a tcsh and I have no idea why.
    I guess the tcsh is sitting waiting for input or something as all works well if I remove the "which ant" call.

    Thansk again...


  • Registered Users, Registered Users 2 Posts: 6,762 ✭✭✭WizZard


    Maybe replace the call with a hardcoded path? (this is bad programming)


  • Registered Users, Registered Users 2 Posts: 27,465 ✭✭✭✭GreeBo


    WizZard wrote:
    Maybe replace the call with a hardcoded path? (this is bad programming)
    I just removed it, nothing was even being done with it
    i.e. it was simply
    <blah>
    which ant
    <more blah>

    whats gets me is the file hasnt changed in months
    Im trying to figure out what could hace changed in the env or profile to cause this, maybe a differnet default shell for the user?


Advertisement