Forum Discussion

Jonathan_Scholi's avatar
Jonathan_Scholi
Icon for Cirrostratus rankCirrostratus
Mar 23, 2012

TMOS/tmsh login script?

In bash, it's useful to create a script that will run every time you log on. Is there a way to do this in the tmsh shell?

 

3 Replies

  • Hi Johnathan,

     

     

    Maybe someone can correct me if I"m wrong, but I don't think this is possible currently. You could open a case with F5 Support to request this type of functionality. For now, maybe you could use global aliases to simplify your initial setup?

     

     

    Alex Applebaum wrote a codeshare example on global aliases in tmsh:

     

     

    https://devcentral.f5.com/wiki/TMSH.Bash-Command-Wrapper.ashx

     

     

    Aaron
  • Okay, thanks. I'm aware of aliases, but was looking for something that could run every time an automated process logs on, so that the process doesn't have to be aware of the change from bash to tmsh in newer versions.
  • what comes to mind is that the user does not point to linux bin / bash but a shell and within that to bash d.

     

     

    But it would be directly in unix