Hi to all, I have a FREEBSD 13.0 running as a webserver, I discover shellinabox, and I want to run an application after login and disconnect after or closing the application.
the shell is standard shell
I write a little script with this line :
/usr/local/bin/myprg
put it into .profile
and all works well after i logging in
the myprog run and successfully close it
and it return to shell, but I want that after closing myprog the connected user have to disconnect from the server
the same thing with tty connection,
the only way to close connection is typing control D on the keyboard
How can solve the problem ( before asking in this forum I searched a lot with google and also in this forum )
regards
Domenico
the shell is standard shell
I write a little script with this line :
/usr/local/bin/myprg
put it into .profile
and all works well after i logging in
the myprog run and successfully close it
and it return to shell, but I want that after closing myprog the connected user have to disconnect from the server
the same thing with tty connection,
the only way to close connection is typing control D on the keyboard
How can solve the problem ( before asking in this forum I searched a lot with google and also in this forum )
regards
Domenico