script problem

From: Gallagher, Kevin (K.Gallagher_at_napier.ac.uk)
Date: 09/30/04

  • Next message: Dan Cave: "tcpwrappers & tftpd"
    Date: Thu, 30 Sep 2004 16:24:16 +0100
    To: "'Sunmanagers (E-mail)" <sunmanagers@sunmanagers.org>
    
    

    I am trying to run a master script as user 1 which requires to su to user 2 to
    run a subsequent script. NB Running the subsequent script from interactively
    from the prompt of user 2 works fine.

    User 1 uses the bourne shell and User 2 uses the c shell.

    The following is output to the screen and returns me back to the user 1 on
    execution of the master script as user 1:

    Execute master cshrc
    stty: : Inappropriate ioctl for device
    `tty`: Ambiguous
    logout

    The .login file for the user 2 contains the line "stty -istrip".

    Is this what is causing the problem and if so how can this be ignored when the
    script is being run in a non-interactive session?

    thanks,

    Kevin Gallagher
    Networked Services Group
    C & IT
    Craiglockhart
    Ext. 4248
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Dan Cave: "tcpwrappers & tftpd"

    Relevant Pages