Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Scripting & Automation
  New Posts New Posts RSS Feed - Script setting changes to remote PCs
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedScript setting changes to remote PCs

 Post Reply Post Reply
Author
Message
ninja View Drop Down
Newbie
Newbie


Joined: September 21 2012
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote ninja Quote  Post ReplyReply Direct Link To This Post Topic: Script setting changes to remote PCs
    Posted: September 21 2012 at 11:16am
I would like to change 2 settings for all of the accuterm installs on our network.  I would like to keep any other settings the user has the same.  Is the correct way to do this with a script created in accuterm?

It appears to me that the Session.Hostname and the Session.HistoryRows are the properties that I need to change, but I am not sure how to make a script that does this. 

What is the correct format for something like this?
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: September 24 2012 at 4:19am
Hi Ninja -

You can use a simple script to change settings from the host, but those changes would only happen when the user logs on and runs the host program which makes the changes. I don't know a way to "push" the changes to every install.

You are on the right track, but you might have a problem changing the hostname. This may cause the session to disconnect, so the user would need to close and reopen the session.

SCRIPT='With InitSession':CHAR(25)
SCRIPT=SCRIPT:'.HistoryRows=1000':CHAR(25)
SCRIPT=SCRIPT:'.Hostname="newhostname"':CHAR(25)
SCRIPT=SCRIPT:'.Save':CHAR(25)
SCRIPT=SCRIPT:'End With'
PRINT CHAR(27):CHAR(2):'P':SCRIPT:CHAR(13):

Thanks,

Pete
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.