how to tell if a script is running in a login shell

From: ccwallin (ccwallin_at_yahoo.com)
Date: 02/02/05

  • Next message: David Turner, Island Computers US Corp: "Compaq Alpha DS10L still going cheap !"
    Date: 2 Feb 2005 12:17:19 -0800
    
    

    How can one tell if a script is running in a login shell(-sh). And if
    so what is the name of the script.

    What do the following mean in a ps listing -
    -sh means login shell
    -sh (sh) means ?
    [sh] means ?

    Tom Wallin


  • Next message: David Turner, Island Computers US Corp: "Compaq Alpha DS10L still going cheap !"

    Relevant Pages

    • Re: Detailed logging of ssh sessions
      ... >via ssh). ... come in some way from the login shell. ... I'd just experiment with using script in some way ...
      (freebsd-questions)
    • Re: Hacker activity?
      ... >login to a server, most as root but some are attempts to login to ... >telnet, all come from the same remote server, and all fail. ... >getting some odd cgi calls to a script on a secure ssl server. ... Make sure root cannot login to your system via ssh. ...
      (freebsd-questions)
    • Re: [opensuse] BASH: has $COLUMNS gone nuts?
      ... You do realize that lines & columns are dynamic values which at least some terminals and login daemons will continuously adjust right? ... What the above shows is that I dragged the corner of my PuTTY window (which was connected to sshd, not every terminal client nor every server daemon does this) making the window a little larger and without issuing any commands, and no possibility that any bashrc or inclusions got executed, the values changed, because the terminal told the daemon and the daemon told it's child processes. ... Try calling them from within a script: ... Although, I would also actually be perverse and say that since the SCO systems predate most others, including ALL linux, that you could actually make the argument that the dwindling remaining production sco boxes in the world are right and the 90 million linux & freebsd & sun boxes are all wrong. ...
      (SuSE)
    • Abusing poor programming techniques in webserver scripts V 1.0
      ... $login = Request.Form ... fool the database parser. ... verified in the script of access to the database, ... The SQL statement will be parsed by the database manager, ...
      (SecProg)
    • Re: Limit desktop & start menu
      ... Create a login script that runs when users log into the TS, and map the R: ... persisitent "R" drive on the server itself and that may cure it. ...
      (microsoft.public.windows.terminal_services)

  • Quantcast