Crontab? Question about /sbin/sh shell for Solaris

Discussion in 'OT Technology' started by trouphaz, Jan 23, 2009.

  1. trouphaz

    trouphaz New Member

    Joined:
    Sep 22, 2003
    Messages:
    2,666
    Likes Received:
    0
    Crontab, do you know if /sbin/sh has any sort of ability to track command history? I know bash and ksh do as well as others, but didn't think /sbin/sh, the default root shell, did.
     
  2. crontab

    crontab (uid = 0)

    Joined:
    Nov 14, 2000
    Messages:
    23,439
    Likes Received:
    11
    sh should have a history... in it's env there is a HISTSIZE and HISTFILE. By default it should write to a .sh_history.

    i've never dived into the configuration for shell history, so i wouldn't know why /bin/sh didn't have a history.

    does !! or history show anything? depending on the $EDITOR it can also be vi's up
     
  3. trouphaz

    trouphaz New Member

    Joined:
    Sep 22, 2003
    Messages:
    2,666
    Likes Received:
    0
    I'm actually referring to the /sbin/sh shell. That's the shell used by root since it is statically linked (in Solaris 8 and 9) and all of that happy horse shit. I think it is a special shell with limited functionality. I'll mess with HISTSIZE and HISTFILE though. Thanks.
     

Share This Page