How do you use newgrp in a script then stay in that group when the script exits

前端 未结 8 994
误落风尘
误落风尘 2021-01-02 02:21

I am running a script on a solaris Box. specifically SunOS 5.7. I am not root. I am trying to execute a script similar to the following:

8条回答
  •  执笔经年
    2021-01-02 02:53

    You could use sh& (or whatever shell you want to use) instead of xterm&

    Or you could also look into using an alias (if your shell supports this) so that you would stay in the context of the current shell.

提交回复
热议问题