Uplink Sessions

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
hegvape
GamingTools Subscriber
Posts: 30
Joined: Tue May 02, 2006 4:28 am

Uplink Sessions

Post by hegvape » Mon Mar 26, 2007 4:37 pm

Hi

I have been struggling with the uplink sessions on my 2 comps.
What I am looking for, but can't seem to find, is if the command UpLink Sessions stores the result somewhere or is it just echoed to the console?

Why I am asking is because I would like to see who of my chars on the 5 diff accounts are connected when I do a remoteuplink. In the eq2botlib.iss theres a line - uplink name ${Me.Name} - canges session name to the character name.
So everytime I start eq2botcommander and run eq2bot from it, it will change the session names from is1, is2, is3 to my logged in toons names.

Is it possible to grab that sessions info into a few variables or is it just for infomation purpose? I also tried to use the redirect command but it wont fill in the output from the uplink sessions command, only creates an empty file.

Would appriciate any help pls.

Kindly

Val

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Tue Mar 27, 2007 11:15 am

I also tried to use the redirect command but it wont fill in the output from the uplink sessions command, only creates an empty file.
that's something weird with EQ2Bot, i dont know if it squelches or what

anyway, Uplink and Sessions are two different commands, but here:
${Sessions} -- number of OTHER sessions
${Session[1]} -- name of first OTHER session
${Session[is1]} -- number of OTHER session named is1

hegvape
GamingTools Subscriber
Posts: 30
Joined: Tue May 02, 2006 4:28 am

Post by hegvape » Tue Mar 27, 2007 5:09 pm

Thanks alot, this was just what I was looking for :D .

Btw, to list all sessions I still need to issue the command: Uplink Sessions
Only typing Sessions says 'Unknown command 'Sessions'

Thanks again

Kindly

Val

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Tue Mar 27, 2007 5:18 pm

Uplink is kind of a shortcut command, it's the same as:
relay <name of uplink> <command>
It allows you to execute a command inside the Uplink. The Sessions command is only available in the Uplink. So is Name (and furthermore the Name command is only available when relayed)

So yes, from a session, that is exactly how you would do it. But in the Uplink console, you just type Sessions, and it's the same thing. :)

hegvape
GamingTools Subscriber
Posts: 30
Joined: Tue May 02, 2006 4:28 am

Post by hegvape » Tue Mar 27, 2007 6:16 pm

Ok, I have tried it out and from what I can find out the ${Session} and ${Sessions} are only working on the local machine.

So I'm guessing (I checked the wiki) that it doesn't support uplinked sessions?

Kindly

Val

hegvape
GamingTools Subscriber
Posts: 30
Joined: Tue May 02, 2006 4:28 am

Post by hegvape » Tue Mar 27, 2007 6:24 pm

Lax wrote:... But in the Uplink console, you just type Sessions, and it's the same thing. :)
I don't think I have ever had an Uplink Console up and running... Or is it me just missunderstanding :oops:

Kindly

Val

hegvape
GamingTools Subscriber
Posts: 30
Joined: Tue May 02, 2006 4:28 am

Post by hegvape » Tue Mar 27, 2007 6:32 pm

hegvape wrote:
Lax wrote:... But in the Uplink console, you just type Sessions, and it's the same thing. :)
I don't think I have ever had an Uplink Console up and running... Or is it me just missunderstanding :oops:
LoL I found it.. just never noticed it before, nor have I used it... :oops:

hegvape
GamingTools Subscriber
Posts: 30
Joined: Tue May 02, 2006 4:28 am

Post by hegvape » Tue Mar 27, 2007 6:49 pm

hegvape wrote:Ok, I have tried it out and from what I can find out the ${Session} and ${Sessions} are only working on the local machine.

So I'm guessing (I checked the wiki) that it doesn't support uplinked sessions?
I tried the same thing in the Uplink Console. Here are some results:

Session and Sessions - Displays the name of all sessions (local and remote)

echo ${Sessions} returns 4 (I have 2 sessions on 2 comps running)

What doesn't work: echo ${Session[1-4]}, it only returns NULL. So I guess it's a dead end for me unless i write a small script to run on each of my 'remote clients' that would send me the info I need to be able to control them regardless of the toons name.

Thanks again

Kindly

Val

Post Reply