liug <email@example.com> wrote:
Mario Charest firstname.lastname@example.org wrote:
Aas I mentioned I couldn`t find a way to use newgrp in pterm.
ah, photon. guess you need to file a bug report.
it works fine for me under X Window gui and text console.
maybe you could use xphoton/xterm if you insist on using GUI
Works for me in a pterm as well.
What version of QNX4? I’m testing with a relatively recent 4.25 and
newgrp may do some login type processing – do you do anything interesting
or exciting in your /etc/default/profile, $HOME/.profile, or whatever file
is pointed to by $ENV after your $HOME/.profile has executed?
Hm…I just had a pterm go away…I did “newgrp blah” and blah was NOT
a valid group.
Try “whence newgrp” and you will probably find the result is “exec newgrp”,
which means the shell turns itself into “newgrp” and when newgrp fails, and
exits, the pterm window has no program running on its terminal, so it goes
away as well.
Try /bin/newgrp the_new_group for testing purposes… I’ll bet you’re getting
an error, but, of course, not being to see the error.
QNX Training Services
Please followup in this newsgroup if you have further questions.