Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Close all sessions except the current one.

1,013 views
Skip to first unread message

Shiva

unread,
Oct 24, 2014, 4:05:50 AM10/24/14
to
Okie, this is just a random post.

I hope you are all aware of the android app whatsapp. It uses a mobile number as a account - and validates it for password and works as a communication messenger. But it doesn't allow multiple sessions because the mobile number used is validated without a password and it is unique. There's another app called as Telegram which has all the features. But you can use multiple sessions for a single 'account' where account here is not limited to a mobile number. It can be a user name as well.

The point here to note is that, whatsapp - is much similar to the mainframe sessions. Only one session per user. But telegram resembles a tandem machine only because it also allows a user to have multiple sessions (or terminals). No comparisons in any other way. Also you might ask me where all these lead to - There's this feature in every telegram session - 'terminate all sessions except this one'. We can understand various reasons why we would need that. You can log into the same account in your MAC and in your mobile and in your iPod and still chat over to the same person where you left off when your mobile died - from your Mac. Because everything is synced. Though this is not the same way as terminals work in Tandem machines. They create totally different new conversations with the machine, each terminal is different and is in no way linked to each other.

But that feature to terminate all sessions except the current one, I thought to bring this up into a tandem macro. Though it seems trivial - I thought I just might try it.

Here's what I thought my way forward should be.

> Who command to list the current terminal's name.
> Status *, user to list all the sessions/terminals active under the same user.
> Get the process ID for all the terminals other than this one.
> use the stop command on all the other process ID numbers.

In my system, the user is allowed to kill his own process, be it a tacl session. Also the thinking should be to just stop all the other process that belongs to any other terminals (pathways, etc) - not just the TACL sessions.

Let me know if this is right. Though this seems pretty silly, just to give some work to my Tandem knowledge I thought this would be fun.

As always, thanks for your responses. :)

mustlea...@netscape.net

unread,
Oct 24, 2014, 5:50:21 AM10/24/14
to
Or you could use STATUS *, USER, STOP to terminate everything but your current tacl session.

Shiva

unread,
Oct 24, 2014, 6:27:49 AM10/24/14
to
Wow. Silly, silly me.

wbreidbach

unread,
Oct 24, 2014, 11:34:40 AM10/24/14
to
Am Freitag, 24. Oktober 2014 12:27:49 UTC+2 schrieb Shiva:
> Wow. Silly, silly me.

Please regard, with the newer OS-releases you will be prompted if you really want to stop these processes.

JShepherd

unread,
Oct 24, 2014, 2:34:54 PM10/24/14
to
In article <65b47ad0-cd90-4d75...@googlegroups.com>,
wolfgang....@gmail.com says...
Unless you

SET _DO_NOT_PROMPT_TACL_STOP ON

which we do in $system.system.tacllocl
because that new "feature" caused more problems than it
could ever could have solved.

Unfortunately SHOW does not work correctly for it in current TACLs

34> show inspect
Inspect ON
35> show swap
Swap
36> show _DO_NOT_PROMPT_TACL_STOP
show _DO_NOT_PROMPT_TACL_STOP
^
Expecting /
Or one of:
DEFINE DEFMODE HIGHPIN INSPECT or SWAP

37> show
Defmode ON
Highpin ON
Inspect ON
Swap
38> set
set
^
Expecting one of:
DEFINE DEFMODE HIGHPIN INSPECT SWAP VARIABLE or _DO_NOT_PROMPT_TACL_STOP
39>

Shiva

unread,
Oct 25, 2014, 1:30:47 PM10/25/14
to
Now that's a lesson learnt! Thanks lot :)

mhs...@gmail.com

unread,
Oct 28, 2014, 11:39:06 PM10/28/14
to
The status command was an alias of the #XSTATUS command in the older releases. Now the status command seems has been made into a macro with all the prompts you mention, so adding on previous comments

#XSTATUS *,user,stop

should work fine :)

Shiva

unread,
Nov 12, 2014, 2:07:12 PM11/12/14
to
And that's another tip!
0 new messages